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

Unified Diff: chrome/browser/chrome_to_mobile_service.h

Issue 10914147: Manage ChromeToMobile URLFetcher lifetimes with a ScopedVector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chrome_to_mobile_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_to_mobile_service.h
diff --git a/chrome/browser/chrome_to_mobile_service.h b/chrome/browser/chrome_to_mobile_service.h
index cb84e40c19cee2d37e5dce366c7b619dc52b0876..89b8d4d5e46ef5b6f3835ae7a1fdd541b760f404 100644
--- a/chrome/browser/chrome_to_mobile_service.h
+++ b/chrome/browser/chrome_to_mobile_service.h
@@ -13,6 +13,7 @@
#include "base/compiler_specific.h"
#include "base/file_path.h"
+#include "base/memory/scoped_vector.h"
#include "base/memory/weak_ptr.h"
#include "base/string16.h"
#include "base/timer.h"
@@ -218,6 +219,9 @@ class ChromeToMobileService : public ProfileKeyedService,
// The set of snapshots currently available.
std::set<FilePath> snapshots_;
+ // The list of active URLFetcher requests owned by the service.
+ ScopedVector<net::URLFetcher> url_fetchers_;
+
// Map URLFetchers to observers for reporting OnSendComplete.
typedef std::map<const net::URLFetcher*, base::WeakPtr<Observer> >
RequestObserverMap;
« no previous file with comments | « no previous file | chrome/browser/chrome_to_mobile_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698