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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
46 class ContentRendererClient; | 46 class ContentRendererClient; |
47 class ContentUtilityClient; | 47 class ContentUtilityClient; |
48 struct PepperPluginInfo; | 48 struct PepperPluginInfo; |
49 | 49 |
50 // Setter and getter for the client. The client should be set early, before any | 50 // Setter and getter for the client. The client should be set early, before any |
51 // content code is called. | 51 // content code is called. |
52 CONTENT_EXPORT void SetContentClient(ContentClient* client); | 52 CONTENT_EXPORT void SetContentClient(ContentClient* client); |
53 | 53 |
54 #if defined(CONTENT_IMPLEMENTATION) | 54 #if defined(CONTENT_IMPLEMENTATION) |
55 // Content's embedder API should only be used by content. | 55 // Content's embedder API should only be used by content. |
56 ContentClient* GetContentClient(); | 56 CONTENT_EXPORT ContentClient* GetContentClient(); |
piman
2016/04/07 22:26:58
Please remove this change.
Mark Dittmer
2016/04/08 13:08:43
Done.
| |
57 #endif | 57 #endif |
58 | 58 |
59 // Used for tests to override the relevant embedder interfaces. Each method | 59 // Used for tests to override the relevant embedder interfaces. Each method |
60 // returns the old value. | 60 // returns the old value. |
61 CONTENT_EXPORT ContentBrowserClient* SetBrowserClientForTesting( | 61 CONTENT_EXPORT ContentBrowserClient* SetBrowserClientForTesting( |
62 ContentBrowserClient* b); | 62 ContentBrowserClient* b); |
63 CONTENT_EXPORT ContentRendererClient* SetRendererClientForTesting( | 63 CONTENT_EXPORT ContentRendererClient* SetRendererClientForTesting( |
64 ContentRendererClient* r); | 64 ContentRendererClient* r); |
65 CONTENT_EXPORT ContentUtilityClient* SetUtilityClientForTesting( | 65 CONTENT_EXPORT ContentUtilityClient* SetUtilityClientForTesting( |
66 ContentUtilityClient* u); | 66 ContentUtilityClient* u); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
168 ContentGpuClient* gpu_; | 168 ContentGpuClient* gpu_; |
169 // The embedder API for participating in renderer logic. | 169 // The embedder API for participating in renderer logic. |
170 ContentRendererClient* renderer_; | 170 ContentRendererClient* renderer_; |
171 // The embedder API for participating in utility logic. | 171 // The embedder API for participating in utility logic. |
172 ContentUtilityClient* utility_; | 172 ContentUtilityClient* utility_; |
173 }; | 173 }; |
174 | 174 |
175 } // namespace content | 175 } // namespace content |
176 | 176 |
177 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 177 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
OLD | NEW |