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

Unified Diff: content/browser/plugin_service_impl_browsertest.cc

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/plugin_service_impl.cc ('k') | content/browser/ppapi_plugin_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/plugin_service_impl_browsertest.cc
===================================================================
--- content/browser/plugin_service_impl_browsertest.cc (revision 121250)
+++ content/browser/plugin_service_impl_browsertest.cc (working copy)
@@ -36,7 +36,7 @@
class MockPluginProcessHostClient : public PluginProcessHost::Client,
public IPC::Channel::Listener {
public:
- MockPluginProcessHostClient(const content::ResourceContext& context)
+ MockPluginProcessHostClient(content::ResourceContext* context)
: context_(context),
channel_(NULL),
set_plugin_info_called_(false) {
@@ -50,7 +50,7 @@
// Client implementation.
virtual int ID() OVERRIDE { return 42; }
virtual bool OffTheRecord() OVERRIDE { return false; }
- virtual const content::ResourceContext& GetResourceContext() OVERRIDE {
+ virtual content::ResourceContext* GetResourceContext() OVERRIDE {
return context_;
}
virtual void OnFoundPluginProcessHost(PluginProcessHost* host) OVERRIDE {}
@@ -83,7 +83,7 @@
MOCK_METHOD0(OnChannelListenError, void());
private:
- const content::ResourceContext& context_;
+ content::ResourceContext* context_;
IPC::Channel* channel_;
bool set_plugin_info_called_;
DISALLOW_COPY_AND_ASSIGN(MockPluginProcessHostClient);
@@ -118,7 +118,7 @@
// called since the request should get canceled before then.
class MockCanceledPluginServiceClient : public PluginProcessHost::Client {
public:
- MockCanceledPluginServiceClient(const content::ResourceContext& context)
+ MockCanceledPluginServiceClient(content::ResourceContext* context)
: context_(context),
get_resource_context_called_(false) {
}
@@ -127,7 +127,7 @@
// Client implementation.
MOCK_METHOD0(ID, int());
- virtual const content::ResourceContext& GetResourceContext() OVERRIDE {
+ virtual content::ResourceContext* GetResourceContext() OVERRIDE {
get_resource_context_called_ = true;
return context_;
}
@@ -143,7 +143,7 @@
}
private:
- const content::ResourceContext& context_;
+ content::ResourceContext* context_;
bool get_resource_context_called_;
DISALLOW_COPY_AND_ASSIGN(MockCanceledPluginServiceClient);
@@ -185,7 +185,7 @@
: public MockCanceledPluginServiceClient {
public:
MockCanceledBeforeSentPluginProcessHostClient(
- const content::ResourceContext& context)
+ content::ResourceContext* context)
: MockCanceledPluginServiceClient(context),
set_plugin_info_called_(false),
on_found_plugin_process_host_called_(false),
@@ -258,7 +258,7 @@
: public MockCanceledBeforeSentPluginProcessHostClient {
public:
MockCanceledAfterSentPluginProcessHostClient(
- const content::ResourceContext& context)
+ content::ResourceContext* context)
: MockCanceledBeforeSentPluginProcessHostClient(context),
on_sent_plugin_channel_request_called_(false) {}
virtual ~MockCanceledAfterSentPluginProcessHostClient() {}
« no previous file with comments | « content/browser/plugin_service_impl.cc ('k') | content/browser/ppapi_plugin_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698