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_manager_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_manager_private_a
pi_factory.h" |
| 9 |
| 10 namespace file_manager { |
| 11 |
| 12 FileManagerPrivateAPI::FileManagerPrivateAPI(Profile* profile) |
| 13 : event_router_(new EventRouter(profile)) { |
| 14 event_router_->ObserveEvents(); |
| 15 } |
| 16 |
| 17 FileManagerPrivateAPI::~FileManagerPrivateAPI() { |
| 18 } |
| 19 |
| 20 void FileManagerPrivateAPI::Shutdown() { |
| 21 event_router_->Shutdown(); |
| 22 } |
| 23 |
| 24 // static |
| 25 FileManagerPrivateAPI* FileManagerPrivateAPI::Get(Profile* profile) { |
| 26 return FileManagerPrivateAPIFactory::GetForProfile(profile); |
| 27 } |
| 28 |
| 29 } // namespace file_manager |
OLD | NEW |