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

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

Issue 8253002: Move PageTransition into content namespace. While I'm touching all these files, I've also updated... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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/page_transition_types.cc ('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) 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 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 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/common/page_transition_types.h" 11 #include "content/public/common/page_transition_types.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h"
13 13
14 // The RenderView stores an instance of this class in the "extra data" of each 14 // The RenderView stores an instance of this class in the "extra data" of each
15 // ResourceRequest (see RenderView::willSendRequest). 15 // ResourceRequest (see RenderView::willSendRequest).
16 class CONTENT_EXPORT RequestExtraData 16 class CONTENT_EXPORT RequestExtraData
17 : NON_EXPORTED_BASE(public WebKit::WebURLRequest::ExtraData) { 17 : NON_EXPORTED_BASE(public WebKit::WebURLRequest::ExtraData) {
18 public: 18 public:
19 RequestExtraData(bool is_main_frame, 19 RequestExtraData(bool is_main_frame,
20 int64 frame_id, 20 int64 frame_id,
21 PageTransition::Type transition_type); 21 content::PageTransition transition_type);
22 virtual ~RequestExtraData(); 22 virtual ~RequestExtraData();
23 23
24 bool is_main_frame() const { return is_main_frame_; } 24 bool is_main_frame() const { return is_main_frame_; }
25 int64 frame_id() const { return frame_id_; } 25 int64 frame_id() const { return frame_id_; }
26 PageTransition::Type transition_type() const { return transition_type_; } 26 content::PageTransition transition_type() const { return transition_type_; }
27 27
28 private: 28 private:
29 bool is_main_frame_; 29 bool is_main_frame_;
30 int64 frame_id_; 30 int64 frame_id_;
31 PageTransition::Type transition_type_; 31 content::PageTransition transition_type_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); 33 DISALLOW_COPY_AND_ASSIGN(RequestExtraData);
34 }; 34 };
35 35
36 #endif // CONTENT_COMMON_REQUEST_EXTRA_DATA_H_ 36 #endif // CONTENT_COMMON_REQUEST_EXTRA_DATA_H_
OLDNEW
« no previous file with comments | « content/common/page_transition_types.cc ('k') | content/common/request_extra_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698