| Index: chrome/browser/media/router/media_router_ui_service.h
|
| diff --git a/chrome/browser/media/router/media_router_ui_service.h b/chrome/browser/media/router/media_router_ui_service.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a50eb4561f9904844af09c111495e383dba0d696
|
| --- /dev/null
|
| +++ b/chrome/browser/media/router/media_router_ui_service.h
|
| @@ -0,0 +1,34 @@
|
| +// Copyright 2016 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_MEDIA_ROUTER_MEDIA_ROUTER_UI_SERVICE_H_
|
| +#define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_UI_SERVICE_H_
|
| +
|
| +#include <memory>
|
| +
|
| +#include "chrome/browser/ui/toolbar/media_router_action_controller.h"
|
| +#include "components/keyed_service/core/keyed_service.h"
|
| +
|
| +class Profile;
|
| +
|
| +namespace media_router {
|
| +
|
| +// Service that owns per-profile Media Router UI objects, such as the controller
|
| +// for the Media Router toolbar action.
|
| +class MediaRouterUIService : public KeyedService {
|
| + public:
|
| + explicit MediaRouterUIService(Profile* profile);
|
| + ~MediaRouterUIService() override;
|
| +
|
| + static MediaRouterUIService* Get(Profile* profile);
|
| +
|
| + private:
|
| + MediaRouterActionController action_controller_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(MediaRouterUIService);
|
| +};
|
| +
|
| +} // namespace media_router
|
| +
|
| +#endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_UI_SERVICE_H_
|
|
|