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

Side by Side Diff: chrome/browser/renderer_host/browser_render_process_host.h

Issue 42680: Add more of the server-side plumbing for extension APIs. Also (Closed)
Patch Set: Introduce SyncExtensionFunction Created 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <string> 10 #include <string>
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 void OnUpdatedCacheStats(const WebKit::WebCache::UsageStats& stats); 102 void OnUpdatedCacheStats(const WebKit::WebCache::UsageStats& stats);
103 103
104 // Initialize support for visited links. Send the renderer process its initial 104 // Initialize support for visited links. Send the renderer process its initial
105 // set of visited links. 105 // set of visited links.
106 void InitVisitedLinks(); 106 void InitVisitedLinks();
107 107
108 // Initialize support for user scripts. Send the renderer process its initial 108 // Initialize support for user scripts. Send the renderer process its initial
109 // set of scripts and listen for updates to scripts. 109 // set of scripts and listen for updates to scripts.
110 void InitUserScripts(); 110 void InitUserScripts();
111 111
112 // Initialize support for extension APIs. Send the list of registered API
113 // functions to thre renderer process.
114 void InitExtensions();
115
112 // Sends the renderer process a new set of user scripts. 116 // Sends the renderer process a new set of user scripts.
113 void SendUserScriptsUpdate(base::SharedMemory* shared_memory); 117 void SendUserScriptsUpdate(base::SharedMemory* shared_memory);
114 118
115 // Gets a handle to the renderer process, normalizing the case where we were 119 // Gets a handle to the renderer process, normalizing the case where we were
116 // started with --single-process. 120 // started with --single-process.
117 base::ProcessHandle GetRendererProcessHandle(); 121 base::ProcessHandle GetRendererProcessHandle();
118 122
119 // Callers can reduce the RenderProcess' priority. 123 // Callers can reduce the RenderProcess' priority.
120 // Returns true if the priority is backgrounded; false otherwise. 124 // Returns true if the priority is backgrounded; false otherwise.
121 void SetBackgrounded(bool boost); 125 void SetBackgrounded(bool boost);
(...skipping 27 matching lines...) Expand all
149 // This is used to clear our cache five seconds after the last use. 153 // This is used to clear our cache five seconds after the last use.
150 base::DelayTimer<BrowserRenderProcessHost> cached_dibs_cleaner_; 154 base::DelayTimer<BrowserRenderProcessHost> cached_dibs_cleaner_;
151 155
152 // Used in single-process mode. 156 // Used in single-process mode.
153 scoped_ptr<RendererMainThread> in_process_renderer_; 157 scoped_ptr<RendererMainThread> in_process_renderer_;
154 158
155 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); 159 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost);
156 }; 160 };
157 161
158 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 162 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tabs_module.cc ('k') | chrome/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698