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 26 matching lines...) Expand all Loading... |
37 | 37 |
38 #include <memory> | 38 #include <memory> |
39 | 39 |
40 #include "base/containers/hash_tables.h" | 40 #include "base/containers/hash_tables.h" |
41 #include "base/memory/scoped_vector.h" | 41 #include "base/memory/scoped_vector.h" |
42 #include "base/memory/weak_ptr.h" | 42 #include "base/memory/weak_ptr.h" |
43 #include "content/common/content_export.h" | 43 #include "content/common/content_export.h" |
44 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 44 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
45 #include "third_party/WebKit/public/web/WebHistoryItem.h" | 45 #include "third_party/WebKit/public/web/WebHistoryItem.h" |
46 | 46 |
47 namespace blink { | |
48 class WebFrame; | |
49 } | |
50 | |
51 namespace content { | 47 namespace content { |
52 class RenderFrameImpl; | 48 class RenderFrameImpl; |
53 class RenderViewImpl; | 49 class RenderViewImpl; |
54 | 50 |
55 class CONTENT_EXPORT HistoryEntry { | 51 class CONTENT_EXPORT HistoryEntry { |
56 public: | 52 public: |
57 class HistoryNode { | 53 class HistoryNode { |
58 public: | 54 public: |
59 HistoryNode(const base::WeakPtr<HistoryEntry>& entry, | 55 HistoryNode(const base::WeakPtr<HistoryEntry>& entry, |
60 const blink::WebHistoryItem& item); | 56 const blink::WebHistoryItem& item); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 101 |
106 typedef base::hash_map<std::string, HistoryNode*> UniqueNamesToItems; | 102 typedef base::hash_map<std::string, HistoryNode*> UniqueNamesToItems; |
107 UniqueNamesToItems unique_names_to_items_; | 103 UniqueNamesToItems unique_names_to_items_; |
108 | 104 |
109 base::WeakPtrFactory<HistoryEntry> weak_ptr_factory_; | 105 base::WeakPtrFactory<HistoryEntry> weak_ptr_factory_; |
110 }; | 106 }; |
111 | 107 |
112 } // namespace content | 108 } // namespace content |
113 | 109 |
114 #endif // CONTENT_RENDERER_HISTORY_ENTRY_H_ | 110 #endif // CONTENT_RENDERER_HISTORY_ENTRY_H_ |
OLD | NEW |