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

Side by Side Diff: chrome/browser/supervised_user/experimental/safe_search_url_reporter.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SUPERVISED_USER_EXPERIMENTAL_SAFE_SEARCH_URL_REPORTER_H_ 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_EXPERIMENTAL_SAFE_SEARCH_URL_REPORTER_H_
6 #define CHROME_BROWSER_SUPERVISED_USER_EXPERIMENTAL_SAFE_SEARCH_URL_REPORTER_H_ 6 #define CHROME_BROWSER_SUPERVISED_USER_EXPERIMENTAL_SAFE_SEARCH_URL_REPORTER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "google_apis/gaia/oauth2_token_service.h" 12 #include "google_apis/gaia/oauth2_token_service.h"
13 #include "net/url_request/url_fetcher_delegate.h" 13 #include "net/url_request/url_fetcher_delegate.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 class GURL; 16 class GURL;
17 class Profile; 17 class Profile;
18 18
19 namespace net { 19 namespace net {
20 class URLFetcher; 20 class URLFetcher;
21 class URLReportContextGetter;
22 } 21 }
23 22
24 class SafeSearchURLReporter : public OAuth2TokenService::Consumer, 23 class SafeSearchURLReporter : public OAuth2TokenService::Consumer,
25 public net::URLFetcherDelegate { 24 public net::URLFetcherDelegate {
26 public: 25 public:
27 using SuccessCallback = base::Callback<void(bool)>; 26 using SuccessCallback = base::Callback<void(bool)>;
28 27
29 SafeSearchURLReporter(OAuth2TokenService* oauth2_token_service, 28 SafeSearchURLReporter(OAuth2TokenService* oauth2_token_service,
30 const std::string& account_id, 29 const std::string& account_id,
31 net::URLRequestContextGetter* context); 30 net::URLRequestContextGetter* context);
(...skipping 30 matching lines...) Expand all
62 std::string account_id_; 61 std::string account_id_;
63 net::URLRequestContextGetter* context_; 62 net::URLRequestContextGetter* context_;
64 int url_fetcher_id_; 63 int url_fetcher_id_;
65 64
66 std::vector<std::unique_ptr<Report>> reports_; 65 std::vector<std::unique_ptr<Report>> reports_;
67 66
68 DISALLOW_COPY_AND_ASSIGN(SafeSearchURLReporter); 67 DISALLOW_COPY_AND_ASSIGN(SafeSearchURLReporter);
69 }; 68 };
70 69
71 #endif // CHROME_BROWSER_SUPERVISED_USER_EXPERIMENTAL_SAFE_SEARCH_URL_REPORTER_ H_ 70 #endif // CHROME_BROWSER_SUPERVISED_USER_EXPERIMENTAL_SAFE_SEARCH_URL_REPORTER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698