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

Unified Diff: content/common/content_client.h

Issue 6695029: Make ContentBrowserClient not be owned by ContentClient, so that the latter d... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
Index: content/common/content_client.h
===================================================================
--- content/common/content_client.h (revision 78112)
+++ content/common/content_client.h (working copy)
@@ -8,8 +8,8 @@
#include "base/basictypes.h"
#include "base/scoped_ptr.h"
-#include "content/browser/content_browser_client.h"
+class ContentBrowserClient;
class GURL;
struct GPUInfo;
@@ -30,10 +30,10 @@
// Gets or sets the embedder API for participating in browser logic.
// The client must be set early, before any content code is called.
ContentBrowserClient* browser_client() {
- return browser_client_.get();
+ return browser_client_;
}
void set_browser_client(ContentBrowserClient* client) {
- browser_client_.reset(client);
+ browser_client_ = client;
}
// Sets the URL that is logged if the child process crashes. Use GURL() to
@@ -43,8 +43,11 @@
// Sets the data on the gpu to send along with crash reports.
virtual void SetGpuInfo(const GPUInfo& gpu_info) {}
+ // Notifies that a plugin process has started.
+ virtual void PluginProcessStarted() {}
+
private:
- scoped_ptr<ContentBrowserClient> browser_client_;
+ ContentBrowserClient* browser_client_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698