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: content/browser/renderer_host/render_message_filter.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "content/browser/renderer_host/render_message_filter.h" 5 #include "content/browser/renderer_host/render_message_filter.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #include "webkit/plugins/webplugininfo.h" 57 #include "webkit/plugins/webplugininfo.h"
58 58
59 #if defined(OS_MACOSX) 59 #if defined(OS_MACOSX)
60 #include "content/common/mac/font_descriptor.h" 60 #include "content/common/mac/font_descriptor.h"
61 #include "content/common/mac/font_loader.h" 61 #include "content/common/mac/font_loader.h"
62 #endif 62 #endif
63 #if defined(OS_POSIX) 63 #if defined(OS_POSIX)
64 #include "base/file_descriptor_posix.h" 64 #include "base/file_descriptor_posix.h"
65 #endif 65 #endif
66 66
67 using content::BrowserThread;
68 using content::PluginServiceFilter;
67 using net::CookieStore; 69 using net::CookieStore;
68 using content::PluginServiceFilter;
69 70
70 namespace { 71 namespace {
71 72
72 const int kPluginsRefreshThresholdInSeconds = 3; 73 const int kPluginsRefreshThresholdInSeconds = 3;
73 74
74 // Common functionality for converting a sync renderer message to a callback 75 // Common functionality for converting a sync renderer message to a callback
75 // function in the browser. Derive from this, create it on the heap when 76 // function in the browser. Derive from this, create it on the heap when
76 // issuing your callback. When done, write your reply parameters into 77 // issuing your callback. When done, write your reply parameters into
77 // reply_msg(), and then call SendReplyAndDeleteThis(). 78 // reply_msg(), and then call SendReplyAndDeleteThis().
78 class RenderMessageCompletionCallback { 79 class RenderMessageCompletionCallback {
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 ViewHostMsg_GetRawCookies::WriteReplyParams(reply_msg, cookies); 840 ViewHostMsg_GetRawCookies::WriteReplyParams(reply_msg, cookies);
840 Send(reply_msg); 841 Send(reply_msg);
841 } 842 }
842 843
843 void RenderMessageFilter::OnCompletedOpenChannelToNpapiPlugin( 844 void RenderMessageFilter::OnCompletedOpenChannelToNpapiPlugin(
844 OpenChannelToNpapiPluginCallback* client) { 845 OpenChannelToNpapiPluginCallback* client) {
845 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 846 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
846 DCHECK(ContainsKey(plugin_host_clients_, client)); 847 DCHECK(ContainsKey(plugin_host_clients_, client));
847 plugin_host_clients_.erase(client); 848 plugin_host_clients_.erase(client);
848 } 849 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.h ('k') | content/browser/renderer_host/render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698