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

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

Issue 8493026: Revert r108760 / reland r108744, r108753 w/ fix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename plugin list accessor to plugin_list() Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « content/plugin/plugin_thread.cc ('k') | content/shell/shell_content_client.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 11 matching lines...) Expand all
22 } 22 }
23 23
24 namespace base { 24 namespace base {
25 class StringPiece; 25 class StringPiece;
26 } 26 }
27 27
28 namespace sandbox { 28 namespace sandbox {
29 class TargetPolicy; 29 class TargetPolicy;
30 } 30 }
31 31
32 namespace webkit {
33 namespace npapi {
34 class PluginList;
35 }
36 }
37
32 namespace content { 38 namespace content {
33 39
34 class ContentBrowserClient; 40 class ContentBrowserClient;
35 class ContentClient; 41 class ContentClient;
36 class ContentPluginClient; 42 class ContentPluginClient;
37 class ContentRendererClient; 43 class ContentRendererClient;
38 class ContentUtilityClient; 44 class ContentUtilityClient;
39 struct GPUInfo; 45 struct GPUInfo;
40 struct PepperPluginInfo; 46 struct PepperPluginInfo;
41 47
(...skipping 30 matching lines...) Expand all
72 // Sets the currently active URL. Use GURL() to clear the URL. 78 // Sets the currently active URL. Use GURL() to clear the URL.
73 virtual void SetActiveURL(const GURL& url) = 0; 79 virtual void SetActiveURL(const GURL& url) = 0;
74 80
75 // Sets the data on the current gpu. 81 // Sets the data on the current gpu.
76 virtual void SetGpuInfo(const content::GPUInfo& gpu_info) = 0; 82 virtual void SetGpuInfo(const content::GPUInfo& gpu_info) = 0;
77 83
78 // Gives the embedder a chance to register its own pepper plugins. 84 // Gives the embedder a chance to register its own pepper plugins.
79 virtual void AddPepperPlugins( 85 virtual void AddPepperPlugins(
80 std::vector<content::PepperPluginInfo>* plugins) = 0; 86 std::vector<content::PepperPluginInfo>* plugins) = 0;
81 87
88 // Gives the embedder a chance to register its own internal NPAPI plugins.
89 virtual void AddNPAPIPlugins(
90 webkit::npapi::PluginList* plugin_list) = 0;
91
82 // Returns whether the given message should be allowed to be sent from a 92 // Returns whether the given message should be allowed to be sent from a
83 // swapped out renderer. 93 // swapped out renderer.
84 virtual bool CanSendWhileSwappedOut(const IPC::Message* msg) = 0; 94 virtual bool CanSendWhileSwappedOut(const IPC::Message* msg) = 0;
85 95
86 // Returns whether the given message should be processed in the browser on 96 // Returns whether the given message should be processed in the browser on
87 // behalf of a swapped out renderer. 97 // behalf of a swapped out renderer.
88 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) = 0; 98 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) = 0;
89 99
90 // Returns the user agent and a flag indicating whether the returned 100 // Returns the user agent and a flag indicating whether the returned
91 // string should always be used (if false, callers may override the 101 // string should always be used (if false, callers may override the
(...skipping 19 matching lines...) Expand all
111 ContentPluginClient* plugin_; 121 ContentPluginClient* plugin_;
112 // The embedder API for participating in renderer logic. 122 // The embedder API for participating in renderer logic.
113 ContentRendererClient* renderer_; 123 ContentRendererClient* renderer_;
114 // The embedder API for participating in utility logic. 124 // The embedder API for participating in utility logic.
115 ContentUtilityClient* utility_; 125 ContentUtilityClient* utility_;
116 }; 126 };
117 127
118 } // namespace content 128 } // namespace content
119 129
120 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 130 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW
« no previous file with comments | « content/plugin/plugin_thread.cc ('k') | content/shell/shell_content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698