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

Side by Side Diff: net/url_request/url_request_job_factory.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_
6 #define NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 11 matching lines...) Expand all
22 22
23 class NET_EXPORT URLRequestJobFactory 23 class NET_EXPORT URLRequestJobFactory
24 : NON_EXPORTED_BASE(public base::NonThreadSafe) { 24 : NON_EXPORTED_BASE(public base::NonThreadSafe) {
25 public: 25 public:
26 // TODO(shalev): Move this to URLRequestJobFactoryImpl. 26 // TODO(shalev): Move this to URLRequestJobFactoryImpl.
27 class NET_EXPORT ProtocolHandler { 27 class NET_EXPORT ProtocolHandler {
28 public: 28 public:
29 virtual ~ProtocolHandler(); 29 virtual ~ProtocolHandler();
30 30
31 virtual URLRequestJob* MaybeCreateJob( 31 virtual URLRequestJob* MaybeCreateJob(
32 URLRequest* request, NetworkDelegate* network_delegate) const = 0; 32 URLRequest* request,
33 NetworkDelegate* network_delegate) const = 0;
33 34
34 // Indicates if it should be safe to redirect to |location|. Should handle 35 // Indicates if it should be safe to redirect to |location|. Should handle
35 // protocols handled by MaybeCreateJob(). Only called when registered with 36 // protocols handled by MaybeCreateJob(). Only called when registered with
36 // URLRequestJobFactoryImpl::SetProtocolHandler() not called when used with 37 // URLRequestJobFactoryImpl::SetProtocolHandler() not called when used with
37 // ProtocolInterceptJobFactory. 38 // ProtocolInterceptJobFactory.
38 // NOTE(pauljensen): Default implementation returns true. 39 // NOTE(pauljensen): Default implementation returns true.
39 virtual bool IsSafeRedirectTarget(const GURL& location) const; 40 virtual bool IsSafeRedirectTarget(const GURL& location) const;
40 }; 41 };
41 42
42 URLRequestJobFactory(); 43 URLRequestJobFactory();
(...skipping 10 matching lines...) Expand all
53 54
54 virtual bool IsSafeRedirectTarget(const GURL& location) const = 0; 55 virtual bool IsSafeRedirectTarget(const GURL& location) const = 0;
55 56
56 private: 57 private:
57 DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactory); 58 DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactory);
58 }; 59 };
59 60
60 } // namespace net 61 } // namespace net
61 62
62 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_ 63 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698