forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontent_switches_internal.h
35 lines (24 loc) · 1.05 KB
/
content_switches_internal.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_COMMON_CONTENT_SWITCHES_INTERNAL_H_
#define CONTENT_COMMON_CONTENT_SWITCHES_INTERNAL_H_
#include "build/build_config.h"
#include "content/common/content_export.h"
#include "content/public/common/web_preferences.h"
namespace base {
class CommandLine;
}
namespace content {
bool IsPinchToZoomEnabled();
V8CacheOptions GetV8CacheOptions();
SavePreviousDocumentResources GetSavePreviousDocumentResources();
void WaitForDebugger(const std::string& label);
// Returns all comma-separated values from all instances of a switch, in the
// order they appear. For example: given command line "--foo=aa,bb --foo=cc",
// the feature list for switch "foo" will be ["aa", "bb", "cc"].
CONTENT_EXPORT std::vector<std::string> FeaturesFromSwitch(
const base::CommandLine& command_line,
const char* switch_name);
} // namespace content
#endif // CONTENT_COMMON_CONTENT_SWITCHES_INTERNAL_H_