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

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

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_STATE_MESSAGE_FILT ER_H_ 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_STATE_MESSAGE_FILT ER_H_
6 #define CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_STATE_MESSAGE_FILT ER_H_ 6 #define CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_STATE_MESSAGE_FILT ER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "chrome/browser/search_engines/search_provider_install_data.h" 9 #include "chrome/browser/search_engines/search_provider_install_data.h"
10 #include "chrome/common/search_provider.h" 10 #include "chrome/common/search_provider.h"
11 #include "content/public/browser/browser_message_filter.h" 11 #include "content/public/browser/browser_message_filter.h"
12 12
13 class GURL; 13 class GURL;
14 class Profile; 14 class Profile;
15 15
16 // Handles messages regarding search provider install state on the I/O thread. 16 // Handles messages regarding search provider install state on the I/O thread.
17 class SearchProviderInstallStateMessageFilter 17 class SearchProviderInstallStateMessageFilter
18 : public content::BrowserMessageFilter { 18 : public content::BrowserMessageFilter {
19 public: 19 public:
20 // Unlike the other methods, the constructor must be called on the UI thread. 20 // Unlike the other methods, the constructor must be called on the UI thread.
21 SearchProviderInstallStateMessageFilter(int render_process_id, 21 SearchProviderInstallStateMessageFilter(int render_process_id,
22 Profile* profile); 22 Profile* profile);
23 23
24 // content::BrowserMessageFilter implementation. 24 // content::BrowserMessageFilter implementation.
25 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 25 virtual bool OnMessageReceived(const IPC::Message& message) override;
26 26
27 private: 27 private:
28 virtual ~SearchProviderInstallStateMessageFilter(); 28 virtual ~SearchProviderInstallStateMessageFilter();
29 29
30 // Figures out the install state for the search provider. 30 // Figures out the install state for the search provider.
31 search_provider::InstallState GetSearchProviderInstallState( 31 search_provider::InstallState GetSearchProviderInstallState(
32 const GURL& page_location, 32 const GURL& page_location,
33 const GURL& requested_host); 33 const GURL& requested_host);
34 34
35 // Starts handling the message requesting the search provider install state. 35 // Starts handling the message requesting the search provider install state.
(...skipping 13 matching lines...) Expand all
49 // thread. 49 // thread.
50 const bool is_off_the_record_; 50 const bool is_off_the_record_;
51 51
52 // Used to schedule invocations of ReplyWithProviderInstallState. 52 // Used to schedule invocations of ReplyWithProviderInstallState.
53 base::WeakPtrFactory<SearchProviderInstallStateMessageFilter> weak_factory_; 53 base::WeakPtrFactory<SearchProviderInstallStateMessageFilter> weak_factory_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(SearchProviderInstallStateMessageFilter); 55 DISALLOW_COPY_AND_ASSIGN(SearchProviderInstallStateMessageFilter);
56 }; 56 };
57 57
58 #endif // CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_STATE_MESSAGE_F ILTER_H_ 58 #endif // CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_STATE_MESSAGE_F ILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698