| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_private_a
pi.h" | |
| 6 | |
| 7 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h" | |
| 8 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_private_a
pi_factory.h" | |
| 9 | |
| 10 namespace file_manager { | |
| 11 | |
| 12 FileBrowserPrivateAPI::FileBrowserPrivateAPI(Profile* profile) | |
| 13 : event_router_(new EventRouter(profile)) { | |
| 14 event_router_->ObserveEvents(); | |
| 15 } | |
| 16 | |
| 17 FileBrowserPrivateAPI::~FileBrowserPrivateAPI() { | |
| 18 } | |
| 19 | |
| 20 void FileBrowserPrivateAPI::Shutdown() { | |
| 21 event_router_->Shutdown(); | |
| 22 } | |
| 23 | |
| 24 // static | |
| 25 FileBrowserPrivateAPI* FileBrowserPrivateAPI::Get(Profile* profile) { | |
| 26 return FileBrowserPrivateAPIFactory::GetForProfile(profile); | |
| 27 } | |
| 28 | |
| 29 } // namespace file_manager | |
| OLD | NEW |