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
3 // found in the LICENSE file.
5 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.h"
7 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h"
8 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_private_api_factory.h"
10 namespace file_manager {
12 FileBrowserPrivateAPI::FileBrowserPrivateAPI(Profile* profile)
13 : event_router_(new EventRouter(profile)) {
14 event_router_->ObserveEvents();
17 FileBrowserPrivateAPI::~FileBrowserPrivateAPI() {
20 void FileBrowserPrivateAPI::Shutdown() {
21 event_router_->Shutdown();
25 FileBrowserPrivateAPI* FileBrowserPrivateAPI::Get(Profile* profile) {
26 return FileBrowserPrivateAPIFactory::GetForProfile(profile);
29 } // namespace file_manager