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

Side by Side Diff: chrome/browser/webdata/web_data_service_factory.h

Issue 13865012: Change GetProfileToUse method from Profile to content::BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots Created 7 years, 7 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 | Annotate | Revision Log
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 CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_FACTORY_H__ 5 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_FACTORY_H__
6 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_FACTORY_H__ 6 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_FACTORY_H__
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 static WebDataServiceFactory* GetInstance(); 61 static WebDataServiceFactory* GetInstance();
62 62
63 private: 63 private:
64 friend struct DefaultSingletonTraits<WebDataServiceFactory>; 64 friend struct DefaultSingletonTraits<WebDataServiceFactory>;
65 65
66 WebDataServiceFactory(); 66 WebDataServiceFactory();
67 virtual ~WebDataServiceFactory(); 67 virtual ~WebDataServiceFactory();
68 68
69 // |ProfileKeyedBaseFactory| methods: 69 // |ProfileKeyedBaseFactory| methods:
70 virtual bool ServiceRedirectedInIncognito() const OVERRIDE; 70 virtual content::BrowserContext* GetBrowserContextToUse(
71 content::BrowserContext* context) const OVERRIDE;
71 virtual ProfileKeyedService* BuildServiceInstanceFor( 72 virtual ProfileKeyedService* BuildServiceInstanceFor(
72 content::BrowserContext* profile) const OVERRIDE; 73 content::BrowserContext* profile) const OVERRIDE;
73 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE; 74 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
74 75
75 DISALLOW_COPY_AND_ASSIGN(WebDataServiceFactory); 76 DISALLOW_COPY_AND_ASSIGN(WebDataServiceFactory);
76 }; 77 };
77 78
78 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_FACTORY_H__ 79 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_FACTORY_H__
OLDNEW
« no previous file with comments | « chrome/browser/user_style_sheet_watcher_factory.cc ('k') | chrome/browser/webdata/web_data_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698