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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 2032283002: Remove refcounting from SavePackage. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 // Helper classes ------------------------------------------------------------ 1124 // Helper classes ------------------------------------------------------------
1125 1125
1126 // Manages the frame tree of the page and process swaps in each node. 1126 // Manages the frame tree of the page and process swaps in each node.
1127 FrameTree frame_tree_; 1127 FrameTree frame_tree_;
1128 1128
1129 // If this WebContents is part of a "tree of WebContents", then this contains 1129 // If this WebContents is part of a "tree of WebContents", then this contains
1130 // information about the structure. 1130 // information about the structure.
1131 std::unique_ptr<WebContentsTreeNode> node_; 1131 std::unique_ptr<WebContentsTreeNode> node_;
1132 1132
1133 // SavePackage, lazily created. 1133 // SavePackage, lazily created.
1134 scoped_refptr<SavePackage> save_package_; 1134 std::unique_ptr<SavePackage> save_package_;
1135 1135
1136 // Manages/coordinates find-in-page requests. Created lazily. 1136 // Manages/coordinates find-in-page requests. Created lazily.
1137 std::unique_ptr<FindRequestManager> find_request_manager_; 1137 std::unique_ptr<FindRequestManager> find_request_manager_;
1138 1138
1139 // Data for loading state ---------------------------------------------------- 1139 // Data for loading state ----------------------------------------------------
1140 1140
1141 // Indicates whether the current load is to a different document. Only valid 1141 // Indicates whether the current load is to a different document. Only valid
1142 // if is_loading_ is true. 1142 // if is_loading_ is true.
1143 bool is_load_to_different_document_; 1143 bool is_load_to_different_document_;
1144 1144
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 // Adds/removes a callback called on creation of each new WebContents. 1402 // Adds/removes a callback called on creation of each new WebContents.
1403 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1403 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1404 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1404 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1405 1405
1406 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1406 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1407 }; 1407 };
1408 1408
1409 } // namespace content 1409 } // namespace content
1410 1410
1411 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1411 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698