OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/gcd_private/gcd_private_api.h" | 5 #include "chrome/browser/extensions/api/gcd_private/gcd_private_api.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/linked_ptr.h" | 9 #include "base/memory/linked_ptr.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
11 #include "chrome/browser/extensions/api/gcd_private/privet_v3_context_getter.h" | 11 #include "chrome/browser/extensions/api/gcd_private/privet_v3_context_getter.h" |
12 #include "chrome/browser/extensions/api/gcd_private/privet_v3_session.h" | 12 #include "chrome/browser/extensions/api/gcd_private/privet_v3_session.h" |
13 #include "chrome/browser/local_discovery/endpoint_resolver.h" | 13 #include "chrome/browser/local_discovery/endpoint_resolver.h" |
14 #include "chrome/browser/local_discovery/service_discovery_shared_client.h" | 14 #include "chrome/browser/local_discovery/service_discovery_shared_client.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "content/public/browser/browser_context.h" | 16 #include "content/public/browser/browser_context.h" |
17 #include "content/public/browser/storage_partition.h" | 17 #include "content/public/browser/storage_partition.h" |
18 #include "net/url_request/url_request_context_getter.h" | 18 #include "net/url_request/url_request_context_getter.h" |
19 | 19 |
20 namespace extensions { | 20 namespace extensions { |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 | 437 |
438 GcdPrivateAPIImpl* gcd_api = GcdPrivateAPIImpl::Get(GetProfile()); | 438 GcdPrivateAPIImpl* gcd_api = GcdPrivateAPIImpl::Get(GetProfile()); |
439 | 439 |
440 gcd_api->RemoveSession(params->session_id); | 440 gcd_api->RemoveSession(params->session_id); |
441 | 441 |
442 SendResponse(true); | 442 SendResponse(true); |
443 return true; | 443 return true; |
444 } | 444 } |
445 | 445 |
446 } // namespace extensions | 446 } // namespace extensions |
OLD | NEW |