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

Side by Side Diff: chrome/browser/chromeos/login/signin/merge_session_resource_throttle.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CHROMEOS_LOGIN_SIGNIN_MERGE_SESSION_RESOURCE_THROTTLE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_MERGE_SESSION_RESOURCE_THROTTLE_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_MERGE_SESSION_RESOURCE_THROTTLE_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_MERGE_SESSION_RESOURCE_THROTTLE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/public/browser/resource_throttle.h" 10 #include "content/public/browser/resource_throttle.h"
11 11
12 class GURL;
13
14 namespace net { 12 namespace net {
15 class URLRequest; 13 class URLRequest;
16 } 14 }
17 15
18 class MergeSessionResourceThrottle : public content::ResourceThrottle { 16 class MergeSessionResourceThrottle : public content::ResourceThrottle {
19 public: 17 public:
20 explicit MergeSessionResourceThrottle(net::URLRequest* request); 18 explicit MergeSessionResourceThrottle(net::URLRequest* request);
21 ~MergeSessionResourceThrottle() override; 19 ~MergeSessionResourceThrottle() override;
22 20
23 private: 21 private:
24 // content::ResourceThrottle implementation: 22 // content::ResourceThrottle implementation:
25 void WillStartRequest(bool* defer) override; 23 void WillStartRequest(bool* defer) override;
26 const char* GetNameForLogging() const override; 24 const char* GetNameForLogging() const override;
27 25
28 // MergeSessionXHRRequestWaiter callback. 26 // MergeSessionXHRRequestWaiter callback.
29 void OnBlockingPageComplete(); 27 void OnBlockingPageComplete();
30 28
31 // Not owned. 29 // Not owned.
32 net::URLRequest* request_; 30 net::URLRequest* request_;
33 31
34 base::WeakPtrFactory<MergeSessionResourceThrottle> weak_factory_; 32 base::WeakPtrFactory<MergeSessionResourceThrottle> weak_factory_;
35 33
36 DISALLOW_COPY_AND_ASSIGN(MergeSessionResourceThrottle); 34 DISALLOW_COPY_AND_ASSIGN(MergeSessionResourceThrottle);
37 }; 35 };
38 36
39 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_MERGE_SESSION_RESOURCE_THROTTLE_ H_ 37 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_MERGE_SESSION_RESOURCE_THROTTLE_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698