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

Side by Side Diff: content/child/request_extra_data.h

Issue 107183002: Move more of the plugin code in the renderer to use RenderFrame instead of RenderView. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 7 years 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/browser/web_contents/web_contents_impl.cc ('k') | content/child/request_extra_data.cc » ('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_CHILD_REQUEST_EXTRA_DATA_H_ 5 #ifndef CONTENT_CHILD_REQUEST_EXTRA_DATA_H_
6 #define CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ 6 #define CONTENT_CHILD_REQUEST_EXTRA_DATA_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/common/page_transition_types.h" 10 #include "content/public/common/page_transition_types.h"
11 #include "webkit/child/weburlrequest_extradata_impl.h" 11 #include "webkit/child/weburlrequest_extradata_impl.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // The RenderView stores an instance of this class in the "extra data" of each 15 // The RenderView stores an instance of this class in the "extra data" of each
16 // ResourceRequest (see RenderView::willSendRequest). 16 // ResourceRequest (see RenderFrameImpl::willSendRequest).
17 class CONTENT_EXPORT RequestExtraData 17 class CONTENT_EXPORT RequestExtraData
18 : NON_EXPORTED_BASE(public webkit_glue::WebURLRequestExtraDataImpl) { 18 : NON_EXPORTED_BASE(public webkit_glue::WebURLRequestExtraDataImpl) {
19 public: 19 public:
20 RequestExtraData(blink::WebReferrerPolicy referrer_policy, 20 RequestExtraData(blink::WebReferrerPolicy referrer_policy,
21 const blink::WebString& custom_user_agent, 21 const blink::WebString& custom_user_agent,
22 bool was_after_preconnect_request, 22 bool was_after_preconnect_request,
23 int render_frame_id,
23 bool is_main_frame, 24 bool is_main_frame,
24 int64 frame_id, 25 int64 frame_id,
25 const GURL& frame_origin, 26 const GURL& frame_origin,
26 bool parent_is_main_frame, 27 bool parent_is_main_frame,
27 int64 parent_frame_id, 28 int64 parent_frame_id,
28 bool allow_download, 29 bool allow_download,
29 PageTransition transition_type, 30 PageTransition transition_type,
30 bool should_replace_current_entry, 31 bool should_replace_current_entry,
31 int transferred_request_child_id, 32 int transferred_request_child_id,
32 int transferred_request_request_id); 33 int transferred_request_request_id);
33 virtual ~RequestExtraData(); 34 virtual ~RequestExtraData();
34 35
36 int render_frame_id() const { return render_frame_id_; }
35 bool is_main_frame() const { return is_main_frame_; } 37 bool is_main_frame() const { return is_main_frame_; }
36 int64 frame_id() const { return frame_id_; } 38 int64 frame_id() const { return frame_id_; }
37 GURL frame_origin() const { return frame_origin_; } 39 GURL frame_origin() const { return frame_origin_; }
38 bool parent_is_main_frame() const { return parent_is_main_frame_; } 40 bool parent_is_main_frame() const { return parent_is_main_frame_; }
39 int64 parent_frame_id() const { return parent_frame_id_; } 41 int64 parent_frame_id() const { return parent_frame_id_; }
40 bool allow_download() const { return allow_download_; } 42 bool allow_download() const { return allow_download_; }
41 PageTransition transition_type() const { return transition_type_; } 43 PageTransition transition_type() const { return transition_type_; }
42 bool should_replace_current_entry() const { 44 bool should_replace_current_entry() const {
43 return should_replace_current_entry_; 45 return should_replace_current_entry_;
44 } 46 }
45 int transferred_request_child_id() const { 47 int transferred_request_child_id() const {
46 return transferred_request_child_id_; 48 return transferred_request_child_id_;
47 } 49 }
48 int transferred_request_request_id() const { 50 int transferred_request_request_id() const {
49 return transferred_request_request_id_; 51 return transferred_request_request_id_;
50 } 52 }
51 53
52 private: 54 private:
55 int render_frame_id_;
53 bool is_main_frame_; 56 bool is_main_frame_;
54 int64 frame_id_; 57 int64 frame_id_;
55 GURL frame_origin_; 58 GURL frame_origin_;
56 bool parent_is_main_frame_; 59 bool parent_is_main_frame_;
57 int64 parent_frame_id_; 60 int64 parent_frame_id_;
58 bool allow_download_; 61 bool allow_download_;
59 PageTransition transition_type_; 62 PageTransition transition_type_;
60 bool should_replace_current_entry_; 63 bool should_replace_current_entry_;
61 int transferred_request_child_id_; 64 int transferred_request_child_id_;
62 int transferred_request_request_id_; 65 int transferred_request_request_id_;
63 66
64 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); 67 DISALLOW_COPY_AND_ASSIGN(RequestExtraData);
65 }; 68 };
66 69
67 } // namespace content 70 } // namespace content
68 71
69 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ 72 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/child/request_extra_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698