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

Unified Diff: chrome/browser/chromeos/gview_request_interceptor.h

Issue 5711001: Add a new GetInstance() method for remaining files with singleton classes under chrome/browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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
Index: chrome/browser/chromeos/gview_request_interceptor.h
diff --git a/chrome/browser/chromeos/gview_request_interceptor.h b/chrome/browser/chromeos/gview_request_interceptor.h
index 7642d1d6fde8bf04964243e085ae2be22462b8e9..cd8dfde7cb663b413570dc5626165b4962aaa373 100644
--- a/chrome/browser/chromeos/gview_request_interceptor.h
+++ b/chrome/browser/chromeos/gview_request_interceptor.h
@@ -10,6 +10,8 @@
#include "base/hash_tables.h"
#include "net/url_request/url_request.h"
+template <typename T> struct DefaultSingletonTraits;
+
namespace chromeos {
// This class integrates the Google Document Viewer into ChromeOS,
@@ -20,9 +22,6 @@ namespace chromeos {
// parameter.
class GViewRequestInterceptor : public net::URLRequest::Interceptor {
public:
- GViewRequestInterceptor();
- virtual ~GViewRequestInterceptor();
-
// Always returns NULL because we don't want to attempt a redirect
// before seeing the detected mime type of the request.
virtual net::URLRequestJob* MaybeIntercept(net::URLRequest* request);
@@ -36,6 +35,11 @@ class GViewRequestInterceptor : public net::URLRequest::Interceptor {
static net::URLRequest::Interceptor* GetGViewRequestInterceptor();
private:
+ friend struct DefaultSingletonTraits<GViewRequestInterceptor>;
+
+ GViewRequestInterceptor();
+ virtual ~GViewRequestInterceptor();
+
// The list of supported mime types.
base::hash_set<std::string> supported_mime_types_;
};

Powered by Google App Engine
This is Rietveld 408576698