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

Side by Side Diff: chrome/renderer/render_thread.h

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 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 | « chrome/renderer/plugin_channel_host.cc ('k') | chrome/renderer/render_thread.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_RENDERER_RENDER_THREAD_H_ 5 #ifndef CHROME_RENDERER_RENDER_THREAD_H_
6 #define CHROME_RENDERER_RENDER_THREAD_H_ 6 #define CHROME_RENDERER_RENDER_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); 247 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy();
248 248
249 // This function is called for every registered V8 extension each time a new 249 // This function is called for every registered V8 extension each time a new
250 // script context is created. Returns true if the given V8 extension is 250 // script context is created. Returns true if the given V8 extension is
251 // allowed to run on the given URL and extension group. 251 // allowed to run on the given URL and extension group.
252 bool AllowScriptExtension(const std::string& v8_extension_name, 252 bool AllowScriptExtension(const std::string& v8_extension_name,
253 const GURL& url, 253 const GURL& url,
254 int extension_group); 254 int extension_group);
255 255
256 private: 256 private:
257 virtual void OnControlMessageReceived(const IPC::Message& msg); 257 virtual bool OnControlMessageReceived(const IPC::Message& msg);
258 258
259 void Init(); 259 void Init();
260 260
261 void OnUpdateVisitedLinks(base::SharedMemoryHandle table); 261 void OnUpdateVisitedLinks(base::SharedMemoryHandle table);
262 void OnAddVisitedLinks(const VisitedLinkSlave::Fingerprints& fingerprints); 262 void OnAddVisitedLinks(const VisitedLinkSlave::Fingerprints& fingerprints);
263 void OnResetVisitedLinks(); 263 void OnResetVisitedLinks();
264 void OnSetZoomLevelForCurrentURL(const GURL& url, double zoom_level); 264 void OnSetZoomLevelForCurrentURL(const GURL& url, double zoom_level);
265 void OnSetContentSettingsForCurrentURL( 265 void OnSetContentSettingsForCurrentURL(
266 const GURL& url, const ContentSettings& content_settings); 266 const GURL& url, const ContentSettings& content_settings);
267 void OnUpdateUserScripts(base::SharedMemoryHandle table); 267 void OnUpdateUserScripts(base::SharedMemoryHandle table);
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 407
408 // Map of registered v8 extensions. The key is the extension name. The value 408 // Map of registered v8 extensions. The key is the extension name. The value
409 // is true if the extension should be restricted to extension-related 409 // is true if the extension should be restricted to extension-related
410 // contexts. 410 // contexts.
411 std::map<std::string, bool> v8_extensions_; 411 std::map<std::string, bool> v8_extensions_;
412 412
413 DISALLOW_COPY_AND_ASSIGN(RenderThread); 413 DISALLOW_COPY_AND_ASSIGN(RenderThread);
414 }; 414 };
415 415
416 #endif // CHROME_RENDERER_RENDER_THREAD_H_ 416 #endif // CHROME_RENDERER_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/renderer/plugin_channel_host.cc ('k') | chrome/renderer/render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698