class SearchProviderInstallStateMessageFilter
: public content::BrowserMessageFilter {
public:
- // Unlike the other methods, the constructor is called on the UI thread.
+ // Unlike the other methods, the constructor must be called on the UI thread.
SearchProviderInstallStateMessageFilter(int render_process_id,
Profile* profile);
// content::BrowserMessageFilter implementation.
- virtual bool OnMessageReceived(const IPC::Message& message,
- bool* message_was_ok) OVERRIDE;
+ bool OnMessageReceived(const IPC::Message& message) override;
private:
- virtual ~SearchProviderInstallStateMessageFilter();
+ ~SearchProviderInstallStateMessageFilter() override;
// Figures out the install state for the search provider.
search_provider::InstallState GetSearchProviderInstallState(
const GURL& requested_host,
IPC::Message* reply_msg);
- // Used to schedule invocations of ReplyWithProviderInstallState.
- base::WeakPtrFactory<SearchProviderInstallStateMessageFilter> weak_factory_;
-
// Used to do a load and get information about install states.
SearchProviderInstallData provider_data_;
// thread.
const bool is_off_the_record_;
+ // Used to schedule invocations of ReplyWithProviderInstallState.
+ base::WeakPtrFactory<SearchProviderInstallStateMessageFilter> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(SearchProviderInstallStateMessageFilter);
};