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

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

Issue 1845563005: Refactor content/common/gpu into gpu/ipc/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Export GetContentClient to appease the gods of the Android build Created 4 years, 8 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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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();
Mark Dittmer 2016/04/06 20:47:57 This was necessary to fix this Android build failu
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
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_
OLDNEW
« no previous file with comments | « content/gpu/in_process_gpu_thread.cc ('k') | content/renderer/media/android/stream_texture_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698