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

Side by Side Diff: chrome/browser/search_engines/search_provider_install_state_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 "chrome/browser/search_engines/search_provider_install_state_message_fi lter.h" 5 #include "chrome/browser/search_engines/search_provider_install_state_message_fi lter.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/common/render_messages.h" 9 #include "chrome/common/render_messages.h"
10 #include "content/browser/renderer_host/render_process_host.h" 10 #include "content/browser/renderer_host/render_process_host.h"
11 #include "content/browser/renderer_host/render_view_host.h" 11 #include "content/browser/renderer_host/render_view_host.h"
12 #include "content/public/browser/notification_source.h" 12 #include "content/public/browser/notification_source.h"
13 #include "content/public/browser/notification_types.h" 13 #include "content/public/browser/notification_types.h"
14 #include "googleurl/src/gurl.h" 14 #include "googleurl/src/gurl.h"
15 15
16 using content::BrowserThread;
17
16 SearchProviderInstallStateMessageFilter:: 18 SearchProviderInstallStateMessageFilter::
17 SearchProviderInstallStateMessageFilter( 19 SearchProviderInstallStateMessageFilter(
18 int render_process_id, 20 int render_process_id,
19 Profile* profile) 21 Profile* profile)
20 : ALLOW_THIS_IN_INITIALIZER_LIST( 22 : ALLOW_THIS_IN_INITIALIZER_LIST(
21 reply_with_provider_install_state_factory_(this)), 23 reply_with_provider_install_state_factory_(this)),
22 provider_data_(profile->GetWebDataService(Profile::EXPLICIT_ACCESS), 24 provider_data_(profile->GetWebDataService(Profile::EXPLICIT_ACCESS),
23 content::NOTIFICATION_RENDERER_PROCESS_TERMINATED, 25 content::NOTIFICATION_RENDERER_PROCESS_TERMINATED,
24 content::Source<RenderProcessHost>( 26 content::Source<RenderProcessHost>(
25 RenderProcessHost::FromID(render_process_id))), 27 RenderProcessHost::FromID(render_process_id))),
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 IPC::Message* reply_msg) { 102 IPC::Message* reply_msg) {
101 DCHECK(reply_msg); 103 DCHECK(reply_msg);
102 search_provider::InstallState install_state = 104 search_provider::InstallState install_state =
103 GetSearchProviderInstallState(page_location, requested_host); 105 GetSearchProviderInstallState(page_location, requested_host);
104 106
105 ChromeViewHostMsg_GetSearchProviderInstallState::WriteReplyParams( 107 ChromeViewHostMsg_GetSearchProviderInstallState::WriteReplyParams(
106 reply_msg, 108 reply_msg,
107 install_state); 109 install_state);
108 Send(reply_msg); 110 Send(reply_msg);
109 } 111 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698