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

Side by Side Diff: content/public/renderer/render_thread.h

Issue 133483002: Fix idle handlers not being called. The problem was that RenderThread::AddRoute was assuming that e… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/public/test/mock_render_thread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) = 0; 64 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) = 0;
65 65
66 // Add/remove observers for the process. 66 // Add/remove observers for the process.
67 virtual void AddObserver(RenderProcessObserver* observer) = 0; 67 virtual void AddObserver(RenderProcessObserver* observer) = 0;
68 virtual void RemoveObserver(RenderProcessObserver* observer) = 0; 68 virtual void RemoveObserver(RenderProcessObserver* observer) = 0;
69 69
70 // Set the ResourceDispatcher delegate object for this process. 70 // Set the ResourceDispatcher delegate object for this process.
71 virtual void SetResourceDispatcherDelegate( 71 virtual void SetResourceDispatcherDelegate(
72 ResourceDispatcherDelegate* delegate) = 0; 72 ResourceDispatcherDelegate* delegate) = 0;
73 73
74 // Called by a RenderWidget when it is hidden or restored.
75 virtual void WidgetHidden() = 0;
76 virtual void WidgetRestored() = 0;
77
78 // We initialize WebKit as late as possible. Call this to force 74 // We initialize WebKit as late as possible. Call this to force
79 // initialization. 75 // initialization.
80 virtual void EnsureWebKitInitialized() = 0; 76 virtual void EnsureWebKitInitialized() = 0;
81 77
82 // Sends over a UserMetricsAction to be recorded by user metrics as an action. 78 // Sends over a UserMetricsAction to be recorded by user metrics as an action.
83 // Once a new user metric is added, run 79 // Once a new user metric is added, run
84 // tools/metrics/actions/extract_actions.py --hash 80 // tools/metrics/actions/extract_actions.py --hash
85 // to generate a new mapping of [action hashes -> metric names] and send it 81 // to generate a new mapping of [action hashes -> metric names] and send it
86 // out for review to be updated. 82 // out for review to be updated.
87 // WARNING: When using UserMetricsAction, UserMetricsAction and a string 83 // WARNING: When using UserMetricsAction, UserMetricsAction and a string
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 virtual void PreCacheFont(const LOGFONT& log_font) = 0; 130 virtual void PreCacheFont(const LOGFONT& log_font) = 0;
135 131
136 // Release cached font. 132 // Release cached font.
137 virtual void ReleaseCachedFonts() = 0; 133 virtual void ReleaseCachedFonts() = 0;
138 #endif 134 #endif
139 }; 135 };
140 136
141 } // namespace content 137 } // namespace content
142 138
143 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 139 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | content/public/test/mock_render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698