Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(609)

Side by Side Diff: content/public/common/content_client.h

Issue 2102443002: [GN] content_unittests should depeng on //content/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mac Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/sandbox_init_mac.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/common/sandbox_init_mac.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698