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

Side by Side Diff: chrome/browser/search_engines/search_provider_install_state_dispatcher_host.h

Issue 3117034: Skeleton of sync handler on the I/O thread for GetSearchProviderInstallState. (Closed)
Patch Set: Created 10 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_STATE_DISPATCHER_H OST_H_
6 #define CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_STATE_DISPATCHER_H OST_H_
7
8 #include "base/basictypes.h"
9
10 namespace IPC {
11 class Message;
12 }
13
14 class GURL;
15 class Profile;
16 class ResourceMessageFilter;
17 struct ViewHostMsg_GetSearchProviderInstallState_Params;
18
19 // Handles messages regarding search provider install state on the I/O thread.
20 class SearchProviderInstallStateDispatcherHost {
21 public:
22 SearchProviderInstallStateDispatcherHost(ResourceMessageFilter* ipc_sender,
sky 2010/08/23 16:00:29 Mention this is invoked on the UI thread.
23 Profile* profile);
24 ~SearchProviderInstallStateDispatcherHost();
25
26 // Send a message to the renderer process.
27 void Send(IPC::Message* message);
28
29 // Called to possibly handle the incoming IPC message. Returns true if
30 // handled.
31 bool OnMessageReceived(const IPC::Message& message, bool* message_was_ok);
32
33 private:
34 // Figures out the install state for the search provider.
35 ViewHostMsg_GetSearchProviderInstallState_Params
36 GetSearchProviderInstallState(const GURL& page_location,
37 const GURL& requested_host);
38
39 // Starts handling the message requesting the search provider install state.
40 void OnMsgGetSearchProviderInstallState(const GURL& page_location,
41 const GURL& requested_host,
42 IPC::Message* reply_msg);
43
44 // Sends the reply message about the search provider install state.
45 void ReplyWithProviderInstallState(
46 IPC::Message* reply_msg,
47 ViewHostMsg_GetSearchProviderInstallState_Params install_state);
48
49 ResourceMessageFilter* ipc_sender_;
50 const bool is_off_the_record_;
51
52 DISALLOW_COPY_AND_ASSIGN(SearchProviderInstallStateDispatcherHost);
53 };
54
55 #endif // CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_STATE_DISPATCHE R_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698