| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/extensions/api/api_function.h" | 5 #include "chrome/browser/extensions/api/api_function.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "chrome/browser/extensions/extension_system.h" | |
| 9 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "extensions/browser/extension_system.h" |
| 10 | 10 |
| 11 using content::BrowserThread; | 11 using content::BrowserThread; |
| 12 | 12 |
| 13 namespace extensions { | 13 namespace extensions { |
| 14 | 14 |
| 15 ApiFunction::ApiFunction() { | 15 ApiFunction::ApiFunction() { |
| 16 } | 16 } |
| 17 | 17 |
| 18 ApiFunction::~ApiFunction() { | 18 ApiFunction::~ApiFunction() { |
| 19 } | 19 } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 "specify a different thread or derive from a different class."; | 70 "specify a different thread or derive from a different class."; |
| 71 AsyncWorkStart(); | 71 AsyncWorkStart(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void AsyncApiFunction::RespondOnUIThread() { | 74 void AsyncApiFunction::RespondOnUIThread() { |
| 75 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 75 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 76 SendResponse(Respond()); | 76 SendResponse(Respond()); |
| 77 } | 77 } |
| 78 | 78 |
| 79 } // namespace extensions | 79 } // namespace extensions |
| OLD | NEW |