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

Side by Side Diff: content/public/browser/resource_controller.h

Issue 12035105: Move client certificates retrieval logic out of the SSL sockets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Ryan's remarks Created 7 years, 10 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 CONTENT_PUBLIC_BROWSER_RESOURCE_CONTROLLER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_CONTROLLER_H_
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_CONTROLLER_H_ 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_CONTROLLER_H_
7 7
8 #include "content/common/content_export.h"
9
8 namespace content { 10 namespace content {
9 11
10 // Used to either resume a deferred resource load or cancel a resource load at 12 // Used to either resume a deferred resource load or cancel a resource load at
11 // any time. CancelAndIgnore is a variation of Cancel that also causes the 13 // any time. CancelAndIgnore is a variation of Cancel that also causes the
12 // requester of the resource to act like the request was never made. By 14 // requester of the resource to act like the request was never made. By
13 // default, load is cancelled with ERR_ABORTED code. CancelWithError can be used 15 // default, load is cancelled with ERR_ABORTED code. CancelWithError can be used
14 // to cancel load with any other error code. 16 // to cancel load with any other error code.
15 class ResourceController { 17 class CONTENT_EXPORT ResourceController {
Ryan Sleevi 2013/02/04 23:08:33 nit: CONTENT_EXPORT_PRIVATE
ppi 2013/02/05 17:05:30 /see previous comment/
16 public: 18 public:
17 virtual void Cancel() = 0; 19 virtual void Cancel() = 0;
18 virtual void CancelAndIgnore() = 0; 20 virtual void CancelAndIgnore() = 0;
19 virtual void CancelWithError(int error_code) = 0; 21 virtual void CancelWithError(int error_code) = 0;
20 virtual void Resume() = 0; 22 virtual void Resume() = 0;
21 protected: 23 protected:
22 virtual ~ResourceController() {} 24 virtual ~ResourceController() {}
23 }; 25 };
24 26
25 } // namespace content 27 } // namespace content
26 28
27 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTROLLER_H_ 29 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698