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

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

Issue 11235068: Move the remaning files in content\common to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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/common/plugin_messages.h ('k') | content/common/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_COMMON_REQUEST_EXTRA_DATA_H_ 5 #ifndef CONTENT_COMMON_REQUEST_EXTRA_DATA_H_
6 #define CONTENT_COMMON_REQUEST_EXTRA_DATA_H_ 6 #define CONTENT_COMMON_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/glue/weburlrequest_extradata_impl.h" 11 #include "webkit/glue/weburlrequest_extradata_impl.h"
12 12
13 namespace content {
14
13 // 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
14 // ResourceRequest (see RenderView::willSendRequest). 16 // ResourceRequest (see RenderView::willSendRequest).
15 class CONTENT_EXPORT RequestExtraData 17 class CONTENT_EXPORT RequestExtraData
16 : NON_EXPORTED_BASE(public webkit_glue::WebURLRequestExtraDataImpl) { 18 : NON_EXPORTED_BASE(public webkit_glue::WebURLRequestExtraDataImpl) {
17 public: 19 public:
18 RequestExtraData(WebKit::WebReferrerPolicy referrer_policy, 20 RequestExtraData(WebKit::WebReferrerPolicy referrer_policy,
19 const WebKit::WebString& custom_user_agent, 21 const WebKit::WebString& custom_user_agent,
20 bool is_main_frame, 22 bool is_main_frame,
21 int64 frame_id, 23 int64 frame_id,
22 bool parent_is_main_frame, 24 bool parent_is_main_frame,
23 int64 parent_frame_id, 25 int64 parent_frame_id,
24 bool allow_download, 26 bool allow_download,
25 content::PageTransition transition_type, 27 PageTransition transition_type,
26 int transferred_request_child_id, 28 int transferred_request_child_id,
27 int transferred_request_request_id); 29 int transferred_request_request_id);
28 virtual ~RequestExtraData(); 30 virtual ~RequestExtraData();
29 31
30 bool is_main_frame() const { return is_main_frame_; } 32 bool is_main_frame() const { return is_main_frame_; }
31 int64 frame_id() const { return frame_id_; } 33 int64 frame_id() const { return frame_id_; }
32 bool parent_is_main_frame() const { return parent_is_main_frame_; } 34 bool parent_is_main_frame() const { return parent_is_main_frame_; }
33 int64 parent_frame_id() const { return parent_frame_id_; } 35 int64 parent_frame_id() const { return parent_frame_id_; }
34 bool allow_download() const { return allow_download_; } 36 bool allow_download() const { return allow_download_; }
35 content::PageTransition transition_type() const { return transition_type_; } 37 PageTransition transition_type() const { return transition_type_; }
36 int transferred_request_child_id() const { 38 int transferred_request_child_id() const {
37 return transferred_request_child_id_; 39 return transferred_request_child_id_;
38 } 40 }
39 int transferred_request_request_id() const { 41 int transferred_request_request_id() const {
40 return transferred_request_request_id_; 42 return transferred_request_request_id_;
41 } 43 }
42 44
43 private: 45 private:
44 bool is_main_frame_; 46 bool is_main_frame_;
45 int64 frame_id_; 47 int64 frame_id_;
46 bool parent_is_main_frame_; 48 bool parent_is_main_frame_;
47 int64 parent_frame_id_; 49 int64 parent_frame_id_;
48 bool allow_download_; 50 bool allow_download_;
49 content::PageTransition transition_type_; 51 PageTransition transition_type_;
50 int transferred_request_child_id_; 52 int transferred_request_child_id_;
51 int transferred_request_request_id_; 53 int transferred_request_request_id_;
52 54
53 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); 55 DISALLOW_COPY_AND_ASSIGN(RequestExtraData);
54 }; 56 };
55 57
58 } // namespace content
59
56 #endif // CONTENT_COMMON_REQUEST_EXTRA_DATA_H_ 60 #endif // CONTENT_COMMON_REQUEST_EXTRA_DATA_H_
OLDNEW
« no previous file with comments | « content/common/plugin_messages.h ('k') | content/common/request_extra_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698