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

Unified Diff: chrome/renderer/chrome_render_process_observer.cc

Issue 8116009: Move RenderProcessObserver and RenderViewVisitor to content\public\renderer and put them in the c... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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_process_observer.h ('k') | chrome/renderer/extensions/extension_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_render_process_observer.cc
===================================================================
--- chrome/renderer/chrome_render_process_observer.cc (revision 103758)
+++ chrome/renderer/chrome_render_process_observer.cc (working copy)
@@ -23,9 +23,9 @@
#include "content/common/resource_dispatcher.h"
#include "content/common/resource_dispatcher_delegate.h"
#include "content/common/view_messages.h"
+#include "content/public/renderer/render_view_visitor.h"
#include "content/renderer/render_thread.h"
#include "content/renderer/render_view.h"
-#include "content/renderer/render_view_visitor.h"
#include "crypto/nss_util.h"
#include "media/base/media.h"
#include "media/base/media_switches.h"
@@ -112,7 +112,7 @@
DISALLOW_COPY_AND_ASSIGN(RendererResourceDelegate);
};
-class RenderViewContentSettingsSetter : public RenderViewVisitor {
+class RenderViewContentSettingsSetter : public content::RenderViewVisitor {
public:
RenderViewContentSettingsSetter(const GURL& url,
const ContentSettings& content_settings)
@@ -466,7 +466,7 @@
void ChromeRenderProcessObserver::OnGetCacheResourceStats() {
WebCache::ResourceTypeStats stats;
WebCache::getResourceTypeStats(&stats);
- Send(new ChromeViewHostMsg_ResourceTypeStats(stats));
+ RenderThread::current()->Send(new ChromeViewHostMsg_ResourceTypeStats(stats));
}
#if defined(USE_TCMALLOC)
@@ -475,7 +475,7 @@
char buffer[1024 * 32];
MallocExtension::instance()->GetStats(buffer, sizeof(buffer));
result.append(buffer);
- Send(new ChromeViewHostMsg_RendererTcmalloc(result));
+ RenderThread::current()->Send(new ChromeViewHostMsg_RendererTcmalloc(result));
}
void ChromeRenderProcessObserver::OnSetTcmallocHeapProfiling(
@@ -504,7 +504,8 @@
// a string and pass it to the handler (which runs on the browser host).
std::string result(profile);
delete profile;
- Send(new ChromeViewHostMsg_WriteTcmallocHeapProfile_ACK(filename, result));
+ RenderThread::current()->Send(
+ new ChromeViewHostMsg_WriteTcmallocHeapProfile_ACK(filename, result));
#endif
}
@@ -519,8 +520,8 @@
void ChromeRenderProcessObserver::OnGetV8HeapStats() {
v8::HeapStatistics heap_stats;
v8::V8::GetHeapStatistics(&heap_stats);
- Send(new ChromeViewHostMsg_V8HeapStats(heap_stats.total_heap_size(),
- heap_stats.used_heap_size()));
+ RenderThread::current()->Send(new ChromeViewHostMsg_V8HeapStats(
+ heap_stats.total_heap_size(), heap_stats.used_heap_size()));
}
void ChromeRenderProcessObserver::OnPurgeMemory() {
« no previous file with comments | « chrome/renderer/chrome_render_process_observer.h ('k') | chrome/renderer/extensions/extension_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698