| 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> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 class OriginTrialPolicy; | 52 class OriginTrialPolicy; |
| 53 struct CdmInfo; | 53 struct CdmInfo; |
| 54 struct PepperPluginInfo; | 54 struct PepperPluginInfo; |
| 55 | 55 |
| 56 // Setter and getter for the client. The client should be set early, before any | 56 // Setter and getter for the client. The client should be set early, before any |
| 57 // content code is called. | 57 // content code is called. |
| 58 CONTENT_EXPORT void SetContentClient(ContentClient* client); | 58 CONTENT_EXPORT void SetContentClient(ContentClient* client); |
| 59 | 59 |
| 60 #if defined(CONTENT_IMPLEMENTATION) | 60 #if defined(CONTENT_IMPLEMENTATION) |
| 61 // Content's embedder API should only be used by content. | 61 // Content's embedder API should only be used by content. |
| 62 ContentClient* GetContentClient(); | 62 CONTENT_EXPORT ContentClient* GetContentClient(); |
| 63 #endif | 63 #endif |
| 64 | 64 |
| 65 // Used for tests to override the relevant embedder interfaces. Each method | 65 // Used for tests to override the relevant embedder interfaces. Each method |
| 66 // returns the old value. | 66 // returns the old value. |
| 67 CONTENT_EXPORT ContentBrowserClient* SetBrowserClientForTesting( | 67 CONTENT_EXPORT ContentBrowserClient* SetBrowserClientForTesting( |
| 68 ContentBrowserClient* b); | 68 ContentBrowserClient* b); |
| 69 CONTENT_EXPORT ContentRendererClient* SetRendererClientForTesting( | 69 CONTENT_EXPORT ContentRendererClient* SetRendererClientForTesting( |
| 70 ContentRendererClient* r); | 70 ContentRendererClient* r); |
| 71 CONTENT_EXPORT ContentUtilityClient* SetUtilityClientForTesting( | 71 CONTENT_EXPORT ContentUtilityClient* SetUtilityClientForTesting( |
| 72 ContentUtilityClient* u); | 72 ContentUtilityClient* u); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 ContentGpuClient* gpu_; | 193 ContentGpuClient* gpu_; |
| 194 // The embedder API for participating in renderer logic. | 194 // The embedder API for participating in renderer logic. |
| 195 ContentRendererClient* renderer_; | 195 ContentRendererClient* renderer_; |
| 196 // The embedder API for participating in utility logic. | 196 // The embedder API for participating in utility logic. |
| 197 ContentUtilityClient* utility_; | 197 ContentUtilityClient* utility_; |
| 198 }; | 198 }; |
| 199 | 199 |
| 200 } // namespace content | 200 } // namespace content |
| 201 | 201 |
| 202 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 202 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| OLD | NEW |