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

Unified Diff: chrome/renderer/chrome_render_process_observer.h

Issue 6873014: Clear RenderThread of any Chrome specific code, and move a bunch of stuff out of RenderView. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 | « chrome/renderer/chrome_render_observer.cc ('k') | chrome/renderer/chrome_render_process_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_render_process_observer.h
===================================================================
--- chrome/renderer/chrome_render_process_observer.h (revision 0)
+++ chrome/renderer/chrome_render_process_observer.h (revision 0)
@@ -0,0 +1,47 @@
+// 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_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_
+#define CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_
+#pragma once
+
+#include "base/compiler_specific.h"
+#include "content/renderer/render_process_observer.h"
+
+class GURL;
+struct ContentSettings;
+
+// This class filters the incoming control messages (i.e. ones not destined for
+// a RenderView) for Chrome specific messages that the content layer doesn't
+// happen. If a few messages are related, they should probably have their own
+// observer.
+class ChromeRenderProcessObserver : public RenderProcessObserver {
+ public:
+ ChromeRenderProcessObserver();
+ virtual ~ChromeRenderProcessObserver();
+
+ static bool is_incognito_process() { return is_incognito_process_; }
+
+ private:
+ // RenderProcessObserver implementation.
+ virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;
+
+ void OnSetIsIncognitoProcess(bool is_incognito_process);
+ void OnSetContentSettingsForCurrentURL(
+ const GURL& url, const ContentSettings& content_settings);
+ void OnSetCacheCapacities(size_t min_dead_capacity,
+ size_t max_dead_capacity,
+ size_t capacity);
+ void OnClearCache();
+ void OnGetCacheResourceStats();
+ void OnGetRendererTcmalloc();
+ void OnGetV8HeapStats();
+ void OnPurgeMemory();
+
+ static bool is_incognito_process_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromeRenderProcessObserver);
+};
+
+#endif // CHROME_RENDERER_CHROME_RENDER_PROCESS_OBSERVER_H_
Property changes on: chrome\renderer\chrome_render_process_observer.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/renderer/chrome_render_observer.cc ('k') | chrome/renderer/chrome_render_process_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698