summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_content_client.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-10 00:57:29 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-10 00:57:29 +0000
commit50e52cdb7b513558163b1d0285b4755dc697cd40 (patch)
tree2f72657bdeef16fff04e289798474ee8ae124774 /chrome/common/chrome_content_client.h
parent823821512bc23506c8d8b90651cfebe72d314d20 (diff)
downloadchromium_src-50e52cdb7b513558163b1d0285b4755dc697cd40.zip
chromium_src-50e52cdb7b513558163b1d0285b4755dc697cd40.tar.gz
chromium_src-50e52cdb7b513558163b1d0285b4755dc697cd40.tar.bz2
Add a ContentClient interface than an embedder of content has to implement. This allows us to move Chrome specific code out of content.
Review URL: http://codereview.chromium.org/6660011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77572 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_content_client.h')
-rw-r--r--chrome/common/chrome_content_client.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/chrome/common/chrome_content_client.h b/chrome/common/chrome_content_client.h
new file mode 100644
index 0000000..8c91fca
--- /dev/null
+++ b/chrome/common/chrome_content_client.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
+#define CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
+#pragma once
+
+#include "content/common/content_client.h"
+
+namespace chrome {
+
+class ChromeContentClient : public content::ContentClient {
+ public:
+ // Sets the URL that is logged if the child process crashes. Use GURL() to
+ // clear the URL.
+ virtual void SetActiveURL(const GURL& url);
+
+ // Sets the data on the gpu to send along with crash reports.
+ virtual void SetGpuInfo(const GPUInfo& gpu_info);
+};
+
+} // namespace chrome
+
+#endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_