OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 /* | 5 /* |
6 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
8 * (http://www.torchmobile.com/) | 8 * (http://www.torchmobile.com/) |
9 * | 9 * |
10 * Redistribution and use in source and binary forms, with or without | 10 * Redistribution and use in source and binary forms, with or without |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "third_party/WebKit/public/web/WebHistoryItem.h" | 44 #include "third_party/WebKit/public/web/WebHistoryItem.h" |
45 | 45 |
46 namespace blink { | 46 namespace blink { |
47 class WebFrame; | 47 class WebFrame; |
48 } | 48 } |
49 | 49 |
50 namespace content { | 50 namespace content { |
51 class RenderFrameImpl; | 51 class RenderFrameImpl; |
52 class RenderViewImpl; | 52 class RenderViewImpl; |
53 | 53 |
54 const int kInvalidFrameRoutingID = -1; | |
55 | |
56 class CONTENT_EXPORT HistoryEntry { | 54 class CONTENT_EXPORT HistoryEntry { |
57 public: | 55 public: |
58 class HistoryNode { | 56 class HistoryNode { |
59 public: | 57 public: |
60 HistoryNode(const base::WeakPtr<HistoryEntry>& entry, | 58 HistoryNode(const base::WeakPtr<HistoryEntry>& entry, |
61 const blink::WebHistoryItem& item); | 59 const blink::WebHistoryItem& item); |
62 ~HistoryNode(); | 60 ~HistoryNode(); |
63 | 61 |
64 HistoryNode* AddChild(const blink::WebHistoryItem& item); | 62 HistoryNode* AddChild(const blink::WebHistoryItem& item); |
65 HistoryNode* AddChild(); | 63 HistoryNode* AddChild(); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 104 |
107 typedef base::hash_map<std::string, HistoryNode*> UniqueNamesToItems; | 105 typedef base::hash_map<std::string, HistoryNode*> UniqueNamesToItems; |
108 UniqueNamesToItems unique_names_to_items_; | 106 UniqueNamesToItems unique_names_to_items_; |
109 | 107 |
110 base::WeakPtrFactory<HistoryEntry> weak_ptr_factory_; | 108 base::WeakPtrFactory<HistoryEntry> weak_ptr_factory_; |
111 }; | 109 }; |
112 | 110 |
113 } // namespace content | 111 } // namespace content |
114 | 112 |
115 #endif // CONTENT_RENDERER_HISTORY_ENTRY_H_ | 113 #endif // CONTENT_RENDERER_HISTORY_ENTRY_H_ |
OLD | NEW |