OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 5 #ifndef CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
6 #define CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 6 #define CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | |
9 #include <string> | 10 #include <string> |
10 #include <vector> | 11 #include <vector> |
11 | 12 |
12 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
13 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
14 #include "build/build_config.h" | 15 #include "build/build_config.h" |
15 #include "chrome/common/origin_trials/chrome_origin_trial_policy.h" | 16 #include "chrome/common/origin_trials/chrome_origin_trial_policy.h" |
16 #include "content/public/common/content_client.h" | 17 #include "content/public/common/content_client.h" |
17 | 18 |
18 #if defined(ENABLE_PLUGINS) | 19 #if defined(ENABLE_PLUGINS) |
19 #include "content/public/common/pepper_plugin_info.h" | 20 #include "content/public/common/pepper_plugin_info.h" |
20 #endif | 21 #endif |
21 | 22 |
22 #include "url/url_util.h" | 23 #include "url/url_util.h" |
23 | 24 |
24 // Returns the user agent of Chrome. | 25 // Returns the user agent of Chrome. |
25 std::string GetUserAgent(); | 26 std::string GetUserAgent(); |
26 | 27 |
27 class ChromeContentClient : public content::ContentClient { | 28 class ChromeContentClient : public content::ContentClient { |
28 public: | 29 public: |
30 #if defined(GOOGLE_CHROME_BUILD) | |
31 static const char kNotPresent[]; | |
sky
2016/08/30 03:25:23
Please add a description of this.
| |
32 #endif | |
29 static const char kPDFPluginName[]; | 33 static const char kPDFPluginName[]; |
30 static const char kPDFPluginPath[]; | 34 static const char kPDFPluginPath[]; |
31 static const char kRemotingViewerPluginPath[]; | 35 static const char kRemotingViewerPluginPath[]; |
32 | 36 |
33 ChromeContentClient(); | 37 ChromeContentClient(); |
34 ~ChromeContentClient() override; | 38 ~ChromeContentClient() override; |
35 | 39 |
36 // The methods below are called by child processes to set the function | 40 // The methods below are called by child processes to set the function |
37 // pointers for built-in plugins. We avoid linking these plugins into | 41 // pointers for built-in plugins. We avoid linking these plugins into |
38 // chrome_common because then on Windows we would ship them twice because of | 42 // chrome_common because then on Windows we would ship them twice because of |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
99 | 103 |
100 #if defined(OS_ANDROID) | 104 #if defined(OS_ANDROID) |
101 media::MediaClientAndroid* GetMediaClientAndroid() override; | 105 media::MediaClientAndroid* GetMediaClientAndroid() override; |
102 #endif // OS_ANDROID | 106 #endif // OS_ANDROID |
103 | 107 |
104 private: | 108 private: |
105 std::unique_ptr<ChromeOriginTrialPolicy> origin_trial_policy_; | 109 std::unique_ptr<ChromeOriginTrialPolicy> origin_trial_policy_; |
106 }; | 110 }; |
107 | 111 |
108 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 112 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
OLD | NEW |