| 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 CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "base/strings/string_piece.h" | 14 #include "base/strings/string_piece.h" |
| 15 #include "base/trace_event/trace_event_impl.h" |
| 15 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 16 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
| 17 #include "ui/base/layout.h" | 18 #include "ui/base/layout.h" |
| 18 | 19 |
| 19 class GURL; | 20 class GURL; |
| 20 | 21 |
| 21 namespace base { | 22 namespace base { |
| 22 class RefCountedStaticMemory; | 23 class RefCountedStaticMemory; |
| 23 } | 24 } |
| 24 | 25 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 int sandbox_type, | 135 int sandbox_type, |
| 135 int* sandbox_profile_resource_id) const; | 136 int* sandbox_profile_resource_id) const; |
| 136 #endif | 137 #endif |
| 137 | 138 |
| 138 // Gives the embedder a chance to register additional schemes and origins | 139 // Gives the embedder a chance to register additional schemes and origins |
| 139 // that need to be considered trustworthy. | 140 // that need to be considered trustworthy. |
| 140 // See https://www.w3.org/TR/powerful-features/#is-origin-trustworthy. | 141 // See https://www.w3.org/TR/powerful-features/#is-origin-trustworthy. |
| 141 virtual void AddSecureSchemesAndOrigins(std::set<std::string>* schemes, | 142 virtual void AddSecureSchemesAndOrigins(std::set<std::string>* schemes, |
| 142 std::set<GURL>* origins) {} | 143 std::set<GURL>* origins) {} |
| 143 | 144 |
| 145 virtual base::trace_event::TraceEvent::EventFilterPredicate |
| 146 GetTraceEventFilterPredicate() const; |
| 147 |
| 144 private: | 148 private: |
| 145 friend class ContentClientInitializer; // To set these pointers. | 149 friend class ContentClientInitializer; // To set these pointers. |
| 146 friend class InternalTestInitializer; | 150 friend class InternalTestInitializer; |
| 147 | 151 |
| 148 // The embedder API for participating in browser logic. | 152 // The embedder API for participating in browser logic. |
| 149 ContentBrowserClient* browser_; | 153 ContentBrowserClient* browser_; |
| 150 // The embedder API for participating in plugin logic. | 154 // The embedder API for participating in plugin logic. |
| 151 ContentPluginClient* plugin_; | 155 ContentPluginClient* plugin_; |
| 152 // The embedder API for participating in renderer logic. | 156 // The embedder API for participating in renderer logic. |
| 153 ContentRendererClient* renderer_; | 157 ContentRendererClient* renderer_; |
| 154 // The embedder API for participating in utility logic. | 158 // The embedder API for participating in utility logic. |
| 155 ContentUtilityClient* utility_; | 159 ContentUtilityClient* utility_; |
| 156 }; | 160 }; |
| 157 | 161 |
| 158 } // namespace content | 162 } // namespace content |
| 159 | 163 |
| 160 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 164 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| OLD | NEW |