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

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

Issue 10640019: Remove the HANDLED_EXTERNALLY status code. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add a DCHECK to async_resource_handler Created 8 years, 3 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_REQUEST_INFO_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h " 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h "
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual WebKit::WebReferrerPolicy GetReferrerPolicy() const = 0; 81 virtual WebKit::WebReferrerPolicy GetReferrerPolicy() const = 0;
82 82
83 // When there is upload data, this is the byte count of that data. When there 83 // When there is upload data, this is the byte count of that data. When there
84 // is no upload, this will be 0. 84 // is no upload, this will be 0.
85 virtual uint64 GetUploadSize() const = 0; 85 virtual uint64 GetUploadSize() const = 0;
86 86
87 // True if the request was initiated by a user action (like a tap to follow 87 // True if the request was initiated by a user action (like a tap to follow
88 // a link). 88 // a link).
89 virtual bool HasUserGesture() const = 0; 89 virtual bool HasUserGesture() const = 0;
90 90
91 // True if the request was canceled due to it being handled by an external
darin (slow to review) 2012/08/30 16:15:18 nit: This comment may be a bit too specific. We d
mkosiba (inactive) 2012/08/31 14:45:10 Done.
92 // handler.
93 virtual bool WasIgnoredByHandler() const = 0;
94
91 // Returns false if there is NOT an associated render view. 95 // Returns false if there is NOT an associated render view.
92 virtual bool GetAssociatedRenderView(int* render_process_id, 96 virtual bool GetAssociatedRenderView(int* render_process_id,
93 int* render_view_id) const = 0; 97 int* render_view_id) const = 0;
94 98
95 protected: 99 protected:
96 virtual ~ResourceRequestInfo() {} 100 virtual ~ResourceRequestInfo() {}
97 }; 101 };
98 102
99 } // namespace content 103 } // namespace content
100 104
101 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ 105 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698