| 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 "chromecast/browser/cast_content_browser_client.h" | 5 #include "chromecast/browser/cast_content_browser_client.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 new ::media::MojoMediaApplication(std::move(mojo_media_client), | 86 new ::media::MojoMediaApplication(std::move(mojo_media_client), |
| 87 quit_closure)); | 87 quit_closure)); |
| 88 } | 88 } |
| 89 #endif // defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) | 89 #endif // defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) |
| 90 | 90 |
| 91 // A provider of services for Geolocation. | 91 // A provider of services for Geolocation. |
| 92 class CastGeolocationDelegate : public content::GeolocationDelegate { | 92 class CastGeolocationDelegate : public content::GeolocationDelegate { |
| 93 public: | 93 public: |
| 94 explicit CastGeolocationDelegate(CastBrowserContext* context) | 94 explicit CastGeolocationDelegate(CastBrowserContext* context) |
| 95 : context_(context) {} | 95 : context_(context) {} |
| 96 content::AccessTokenStore* CreateAccessTokenStore() override { | 96 |
| 97 scoped_refptr<content::AccessTokenStore> CreateAccessTokenStore() override { |
| 97 return new CastAccessTokenStore(context_); | 98 return new CastAccessTokenStore(context_); |
| 98 } | 99 } |
| 99 | 100 |
| 100 private: | 101 private: |
| 101 CastBrowserContext* context_; | 102 CastBrowserContext* context_; |
| 102 | 103 |
| 103 DISALLOW_COPY_AND_ASSIGN(CastGeolocationDelegate); | 104 DISALLOW_COPY_AND_ASSIGN(CastGeolocationDelegate); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace | 107 } // namespace |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 process_type, dumps_path, false /* upload */); | 554 process_type, dumps_path, false /* upload */); |
| 554 // StartUploaderThread() even though upload is diferred. | 555 // StartUploaderThread() even though upload is diferred. |
| 555 // Breakpad-related memory is freed in the uploader thread. | 556 // Breakpad-related memory is freed in the uploader thread. |
| 556 crash_handler->StartUploaderThread(); | 557 crash_handler->StartUploaderThread(); |
| 557 return crash_handler; | 558 return crash_handler; |
| 558 } | 559 } |
| 559 #endif // !defined(OS_ANDROID) | 560 #endif // !defined(OS_ANDROID) |
| 560 | 561 |
| 561 } // namespace shell | 562 } // namespace shell |
| 562 } // namespace chromecast | 563 } // namespace chromecast |
| OLD | NEW |