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

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

Issue 10069054: RefCounted types should not have public destructors, content/ remaining bits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to Trunk Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « content/public/browser/indexed_db_context.h ('k') | content/public/browser/speech_recognizer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DISPATCHER_HOST_LOGIN_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_LOGIN_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_LOGIN_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_LOGIN_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // Interface for getting login credentials for HTTP auth requests. If the 15 // Interface for getting login credentials for HTTP auth requests. If the
16 // login delegate obtains credentials, it should call the URLRequest's SetAuth 16 // login delegate obtains credentials, it should call the URLRequest's SetAuth
17 // method. If the user cancels, the login delegate should call the URLRequest's 17 // method. If the user cancels, the login delegate should call the URLRequest's
18 // CancelAuth instead. And in either case, it must make a call to 18 // CancelAuth instead. And in either case, it must make a call to
19 // ResourceDispatcherHost::ClearLoginDelegateForRequest. 19 // ResourceDispatcherHost::ClearLoginDelegateForRequest.
20 class CONTENT_EXPORT ResourceDispatcherHostLoginDelegate 20 class CONTENT_EXPORT ResourceDispatcherHostLoginDelegate
21 : public base::RefCountedThreadSafe<ResourceDispatcherHostLoginDelegate> { 21 : public base::RefCountedThreadSafe<ResourceDispatcherHostLoginDelegate> {
22 public: 22 public:
23 virtual ~ResourceDispatcherHostLoginDelegate() {}
24
25 // Notify the login delegate that the request was cancelled. 23 // Notify the login delegate that the request was cancelled.
26 // This function can only be called from the IO thread. 24 // This function can only be called from the IO thread.
27 virtual void OnRequestCancelled() = 0; 25 virtual void OnRequestCancelled() = 0;
26
27 protected:
28 friend class base::RefCountedThreadSafe<ResourceDispatcherHostLoginDelegate>;
29 virtual ~ResourceDispatcherHostLoginDelegate() {}
28 }; 30 };
29 31
30 } // public content 32 } // public content
31 33
32 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_LOGIN_DELEGATE_H_ 34 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_LOGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/indexed_db_context.h ('k') | content/public/browser/speech_recognizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698