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

Unified Diff: chrome/browser/extensions/api/networking_private/networking_private_factory_chromeos.h

Issue 378103002: Add NetworkingPrivateDelegate class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix stupid mac complaints Created 6 years, 5 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
Index: chrome/browser/extensions/api/networking_private/networking_private_factory_chromeos.h
diff --git a/chrome/browser/extensions/api/networking_private/networking_private_service_client_factory.h b/chrome/browser/extensions/api/networking_private/networking_private_factory_chromeos.h
similarity index 51%
copy from chrome/browser/extensions/api/networking_private/networking_private_service_client_factory.h
copy to chrome/browser/extensions/api/networking_private/networking_private_factory_chromeos.h
index 85d38fb1ff95a3d7e16de387ac9b6bcd3d732a17..d2b37b1e980c06fa922f0d88620ef1b0a8a0a5f3 100644
--- a/chrome/browser/extensions/api/networking_private/networking_private_service_client_factory.h
+++ b/chrome/browser/extensions/api/networking_private/networking_private_factory_chromeos.h
@@ -1,41 +1,42 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
+// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_CLIENT_FACTORY_H_
-#define CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_CLIENT_FACTORY_H_
+#ifndef CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_FACTORY_CHROMEOS_H_
+#define CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_FACTORY_CHROMEOS_H_
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
-class Profile;
+namespace context {
+class BrowserContext;
+}
namespace extensions {
-class NetworkingPrivateServiceClient;
+class NetworkingPrivateChromeOS;
-class NetworkingPrivateServiceClientFactory
+class NetworkingPrivateChromeOSFactory
: public BrowserContextKeyedServiceFactory {
public:
- static NetworkingPrivateServiceClient* GetForProfile(Profile* profile);
-
- static NetworkingPrivateServiceClientFactory* GetInstance();
+ static NetworkingPrivateChromeOS* GetForBrowserContext(
+ content::BrowserContext* browser_context);
+ static NetworkingPrivateChromeOSFactory* GetInstance();
private:
- friend struct DefaultSingletonTraits<NetworkingPrivateServiceClientFactory>;
+ friend struct DefaultSingletonTraits<NetworkingPrivateChromeOSFactory>;
- NetworkingPrivateServiceClientFactory();
- virtual ~NetworkingPrivateServiceClientFactory();
+ NetworkingPrivateChromeOSFactory();
+ virtual ~NetworkingPrivateChromeOSFactory();
// BrowserContextKeyedServiceFactory:
virtual KeyedService* BuildServiceInstanceFor(
- content::BrowserContext* profile) const OVERRIDE;
+ content::BrowserContext* browser_context) const OVERRIDE;
virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
- DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateServiceClientFactory);
+ DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateChromeOSFactory);
};
} // namespace extensions
-#endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_CLIENT_FACTORY_H_
+#endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_FACTORY_CHROMEOS_H_

Powered by Google App Engine
This is Rietveld 408576698