OLD | NEW |
---|---|
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" |
(...skipping 13 matching lines...) Expand all Loading... | |
24 int render_frame_id, | 24 int render_frame_id, |
25 bool is_main_frame, | 25 bool is_main_frame, |
26 int64 frame_id, | 26 int64 frame_id, |
27 const GURL& frame_origin, | 27 const GURL& frame_origin, |
28 bool parent_is_main_frame, | 28 bool parent_is_main_frame, |
29 int64 parent_frame_id, | 29 int64 parent_frame_id, |
30 bool allow_download, | 30 bool allow_download, |
31 PageTransition transition_type, | 31 PageTransition transition_type, |
32 bool should_replace_current_entry, | 32 bool should_replace_current_entry, |
33 int transferred_request_child_id, | 33 int transferred_request_child_id, |
34 int transferred_request_request_id); | 34 int transferred_request_request_id, |
35 int service_worker_provider_id); | |
michaeln
2014/02/28 01:59:58
I'll have to chase down places where this ctor is
| |
35 virtual ~RequestExtraData(); | 36 virtual ~RequestExtraData(); |
36 | 37 |
37 blink::WebPageVisibilityState visibility_state() const { | 38 blink::WebPageVisibilityState visibility_state() const { |
38 return visibility_state_; | 39 return visibility_state_; |
39 } | 40 } |
40 int render_frame_id() const { return render_frame_id_; } | 41 int render_frame_id() const { return render_frame_id_; } |
41 bool is_main_frame() const { return is_main_frame_; } | 42 bool is_main_frame() const { return is_main_frame_; } |
42 int64 frame_id() const { return frame_id_; } | 43 int64 frame_id() const { return frame_id_; } |
43 GURL frame_origin() const { return frame_origin_; } | 44 GURL frame_origin() const { return frame_origin_; } |
44 bool parent_is_main_frame() const { return parent_is_main_frame_; } | 45 bool parent_is_main_frame() const { return parent_is_main_frame_; } |
45 int64 parent_frame_id() const { return parent_frame_id_; } | 46 int64 parent_frame_id() const { return parent_frame_id_; } |
46 bool allow_download() const { return allow_download_; } | 47 bool allow_download() const { return allow_download_; } |
47 PageTransition transition_type() const { return transition_type_; } | 48 PageTransition transition_type() const { return transition_type_; } |
48 bool should_replace_current_entry() const { | 49 bool should_replace_current_entry() const { |
49 return should_replace_current_entry_; | 50 return should_replace_current_entry_; |
50 } | 51 } |
51 int transferred_request_child_id() const { | 52 int transferred_request_child_id() const { |
52 return transferred_request_child_id_; | 53 return transferred_request_child_id_; |
53 } | 54 } |
54 int transferred_request_request_id() const { | 55 int transferred_request_request_id() const { |
55 return transferred_request_request_id_; | 56 return transferred_request_request_id_; |
56 } | 57 } |
58 int service_worker_provider_id() const { | |
59 return service_worker_provider_id_; | |
60 } | |
57 | 61 |
58 private: | 62 private: |
59 blink::WebPageVisibilityState visibility_state_; | 63 blink::WebPageVisibilityState visibility_state_; |
60 int render_frame_id_; | 64 int render_frame_id_; |
61 bool is_main_frame_; | 65 bool is_main_frame_; |
62 int64 frame_id_; | 66 int64 frame_id_; |
63 GURL frame_origin_; | 67 GURL frame_origin_; |
64 bool parent_is_main_frame_; | 68 bool parent_is_main_frame_; |
65 int64 parent_frame_id_; | 69 int64 parent_frame_id_; |
66 bool allow_download_; | 70 bool allow_download_; |
67 PageTransition transition_type_; | 71 PageTransition transition_type_; |
68 bool should_replace_current_entry_; | 72 bool should_replace_current_entry_; |
69 int transferred_request_child_id_; | 73 int transferred_request_child_id_; |
70 int transferred_request_request_id_; | 74 int transferred_request_request_id_; |
75 int service_worker_provider_id_; | |
71 | 76 |
72 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); | 77 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); |
73 }; | 78 }; |
74 | 79 |
75 } // namespace content | 80 } // namespace content |
76 | 81 |
77 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ | 82 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ |
OLD | NEW |