summaryrefslogtreecommitdiffstats
path: root/content/browser/content_browser_client.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-18 22:58:21 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-18 22:58:21 +0000
commit680d2d4ac6f87ccd8c151d9d315d4251245fcaf4 (patch)
tree7bc505ebedbadd3e9e23957ea7e2bf307cfc06ad /content/browser/content_browser_client.h
parent54370ef679aee533c10cf16d504184f4d2825f36 (diff)
downloadchromium_src-680d2d4ac6f87ccd8c151d9d315d4251245fcaf4.zip
chromium_src-680d2d4ac6f87ccd8c151d9d315d4251245fcaf4.tar.gz
chromium_src-680d2d4ac6f87ccd8c151d9d315d4251245fcaf4.tar.bz2
Avoid having SavePackageFilePicker keep a reference to SavePackage, to avoid interfering with its lifetime.
BUG=82782 Review URL: http://codereview.chromium.org/7398003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92918 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/content_browser_client.h')
-rw-r--r--content/browser/content_browser_client.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/content/browser/content_browser_client.h b/content/browser/content_browser_client.h
index c5cedc2..3cd4729 100644
--- a/content/browser/content_browser_client.h
+++ b/content/browser/content_browser_client.h
@@ -9,6 +9,7 @@
#include <string>
#include "base/callback_old.h"
+#include "base/memory/weak_ptr.h"
#include "content/common/content_client.h"
#include "content/common/window_container_type.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresenter.h"
@@ -255,9 +256,9 @@ class ContentBrowserClient {
// Clears browser cookies.
virtual void ClearCookies(RenderViewHost* rvh) = 0;
- // Asks the user for the path to save a page. The embedder calls
+ // Asks the user for the path to save a page. The embedder calls the tab's
// SavePackage::OnPathPicked to give the answer.
- virtual void ChooseSavePath(SavePackage* save_package,
+ virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package,
const FilePath& suggested_path,
bool can_save_as_complete) = 0;