| Index: chrome/browser/extensions/api/streams_private/streams_private_api.h
|
| diff --git a/chrome/browser/extensions/api/streams_private/streams_private_api.h b/chrome/browser/extensions/api/streams_private/streams_private_api.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..36f560d1b9475a1d6be61283930e7ae396c88276
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/api/streams_private/streams_private_api.h
|
| @@ -0,0 +1,46 @@
|
| +// Copyright (c) 2012 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_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_
|
| +#define CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_
|
| +
|
| +#include <map>
|
| +#include <string>
|
| +#include <vector>
|
| +
|
| +#include "base/values.h"
|
| +#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
|
| +#include "chrome/browser/extensions/extension_function.h"
|
| +#include "chrome/browser/profiles/profile_keyed_service.h"
|
| +#include "chrome/common/extensions/extension.h"
|
| +#include "content/public/browser/notification_observer.h"
|
| +#include "content/public/browser/notification_registrar.h"
|
| +
|
| +class Profile;
|
| +
|
| +namespace extensions {
|
| +
|
| +class StreamsPrivateAPI : public ProfileKeyedAPI {
|
| + public:
|
| + explicit StreamsPrivateAPI(Profile* profile);
|
| + virtual ~StreamsPrivateAPI();
|
| +
|
| + // ProfileKeyedAPI implementation.
|
| + static ProfileKeyedAPIFactory<StreamsPrivateAPI>* GetFactoryInstance();
|
| +
|
| + private:
|
| + friend class ProfileKeyedAPIFactory<StreamsPrivateAPI>;
|
| +
|
| + // ProfileKeyedAPI implementation.
|
| + static const char* service_name() {
|
| + return "StreamsPrivateAPI";
|
| + }
|
| + static const bool kServiceIsNULLWhileTesting = true;
|
| +
|
| + Profile* const profile_;
|
| +};
|
| +
|
| +} // namespace extensions
|
| +
|
| +#endif // CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_
|
|
|