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

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

Issue 583663003: Vibration API : migrate to device/vibration using mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove debug logging Created 6 years, 2 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 class ContentRendererClient; 45 class ContentRendererClient;
46 class ContentUtilityClient; 46 class ContentUtilityClient;
47 struct PepperPluginInfo; 47 struct PepperPluginInfo;
48 48
49 // Setter and getter for the client. The client should be set early, before any 49 // Setter and getter for the client. The client should be set early, before any
50 // content code is called. 50 // content code is called.
51 CONTENT_EXPORT void SetContentClient(ContentClient* client); 51 CONTENT_EXPORT void SetContentClient(ContentClient* client);
52 52
53 #if defined(CONTENT_IMPLEMENTATION) 53 #if defined(CONTENT_IMPLEMENTATION)
54 // Content's embedder API should only be used by content. 54 // Content's embedder API should only be used by content.
55 ContentClient* GetContentClient(); 55 CONTENT_EXPORT ContentClient* GetContentClient();
56 #endif 56 #endif
57 57
58 // Used for tests to override the relevant embedder interfaces. Each method 58 // Used for tests to override the relevant embedder interfaces. Each method
59 // returns the old value. 59 // returns the old value.
60 CONTENT_EXPORT ContentBrowserClient* SetBrowserClientForTesting( 60 CONTENT_EXPORT ContentBrowserClient* SetBrowserClientForTesting(
61 ContentBrowserClient* b); 61 ContentBrowserClient* b);
62 CONTENT_EXPORT ContentRendererClient* SetRendererClientForTesting( 62 CONTENT_EXPORT ContentRendererClient* SetRendererClientForTesting(
63 ContentRendererClient* r); 63 ContentRendererClient* r);
64 CONTENT_EXPORT ContentUtilityClient* SetUtilityClientForTesting( 64 CONTENT_EXPORT ContentUtilityClient* SetUtilityClientForTesting(
65 ContentUtilityClient* u); 65 ContentUtilityClient* u);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 ContentPluginClient* plugin_; 144 ContentPluginClient* plugin_;
145 // The embedder API for participating in renderer logic. 145 // The embedder API for participating in renderer logic.
146 ContentRendererClient* renderer_; 146 ContentRendererClient* renderer_;
147 // The embedder API for participating in utility logic. 147 // The embedder API for participating in utility logic.
148 ContentUtilityClient* utility_; 148 ContentUtilityClient* utility_;
149 }; 149 };
150 150
151 } // namespace content 151 } // namespace content
152 152
153 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 153 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698