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

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

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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 "content/public/common/page_transition_types.h"
11 #include "content/public/common/resource_type.h" 10 #include "content/public/common/resource_type.h"
12 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 11 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
13 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" 12 #include "third_party/WebKit/public/web/WebPageVisibilityState.h"
13 #include "ui/base/page_transition_types.h"
14 14
15 namespace net { 15 namespace net {
16 class URLRequest; 16 class URLRequest;
17 } 17 }
18 18
19 namespace content { 19 namespace content {
20 class ResourceContext; 20 class ResourceContext;
21 21
22 // Each URLRequest allocated by the ResourceDispatcherHost has a 22 // Each URLRequest allocated by the ResourceDispatcherHost has a
23 // ResourceRequestInfo instance associated with it. 23 // ResourceRequestInfo instance associated with it.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual int GetProcessType() const = 0; 87 virtual int GetProcessType() const = 0;
88 88
89 // Returns the associated referrer policy. 89 // Returns the associated referrer policy.
90 virtual blink::WebReferrerPolicy GetReferrerPolicy() const = 0; 90 virtual blink::WebReferrerPolicy GetReferrerPolicy() const = 0;
91 91
92 // Returns the associated visibility state at the time the request was started 92 // Returns the associated visibility state at the time the request was started
93 // in the renderer. 93 // in the renderer.
94 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; 94 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0;
95 95
96 // Returns the associated page transition type. 96 // Returns the associated page transition type.
97 virtual PageTransition GetPageTransition() const = 0; 97 virtual ui::PageTransition GetPageTransition() const = 0;
98 98
99 // True if the request was initiated by a user action (like a tap to follow 99 // True if the request was initiated by a user action (like a tap to follow
100 // a link). 100 // a link).
101 virtual bool HasUserGesture() const = 0; 101 virtual bool HasUserGesture() const = 0;
102 102
103 // True if ResourceController::CancelAndIgnore() was called. For example, 103 // True if ResourceController::CancelAndIgnore() was called. For example,
104 // the requested URL may be being loaded by an external program. 104 // the requested URL may be being loaded by an external program.
105 virtual bool WasIgnoredByHandler() const = 0; 105 virtual bool WasIgnoredByHandler() const = 0;
106 106
107 // Returns false if there is NOT an associated render frame. 107 // Returns false if there is NOT an associated render frame.
108 virtual bool GetAssociatedRenderFrame(int* render_process_id, 108 virtual bool GetAssociatedRenderFrame(int* render_process_id,
109 int* render_frame_id) const = 0; 109 int* render_frame_id) const = 0;
110 110
111 // Returns true if this is associated with an asynchronous request. 111 // Returns true if this is associated with an asynchronous request.
112 virtual bool IsAsync() const = 0; 112 virtual bool IsAsync() const = 0;
113 113
114 // Whether this is a download. 114 // Whether this is a download.
115 virtual bool IsDownload() const = 0; 115 virtual bool IsDownload() const = 0;
116 116
117 protected: 117 protected:
118 virtual ~ResourceRequestInfo() {} 118 virtual ~ResourceRequestInfo() {}
119 }; 119 };
120 120
121 } // namespace content 121 } // namespace content
122 122
123 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ 123 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_
OLDNEW
« no previous file with comments | « content/public/browser/page_navigator.cc ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698