| OLD | NEW | 
|    1 // Copyright 2013 The Chromium Authors. All rights reserved. |    1 // Copyright 2013 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 "content/shell/browser/shell_content_browser_client.h" |    5 #include "content/shell/browser/shell_content_browser_client.h" | 
|    6  |    6  | 
|    7 #include <stddef.h> |    7 #include <stddef.h> | 
|    8 #include <utility> |    8 #include <utility> | 
|    9  |    9  | 
|   10 #include "base/base_switches.h" |   10 #include "base/base_switches.h" | 
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  118   return -1; |  118   return -1; | 
|  119 } |  119 } | 
|  120 #endif  // defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) |  120 #endif  // defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) | 
|  121  |  121  | 
|  122 // A provider of services for Geolocation. |  122 // A provider of services for Geolocation. | 
|  123 class ShellGeolocationDelegate : public content::GeolocationDelegate { |  123 class ShellGeolocationDelegate : public content::GeolocationDelegate { | 
|  124  public: |  124  public: | 
|  125   explicit ShellGeolocationDelegate(ShellBrowserContext* context) |  125   explicit ShellGeolocationDelegate(ShellBrowserContext* context) | 
|  126       : context_(context) {} |  126       : context_(context) {} | 
|  127  |  127  | 
|  128   AccessTokenStore* CreateAccessTokenStore() final { |  128   scoped_refptr<AccessTokenStore> CreateAccessTokenStore() final { | 
|  129     return new ShellAccessTokenStore(context_); |  129     return new ShellAccessTokenStore(context_); | 
|  130   } |  130   } | 
|  131  |  131  | 
|  132  private: |  132  private: | 
|  133   ShellBrowserContext* context_; |  133   ShellBrowserContext* context_; | 
|  134  |  134  | 
|  135   DISALLOW_COPY_AND_ASSIGN(ShellGeolocationDelegate); |  135   DISALLOW_COPY_AND_ASSIGN(ShellGeolocationDelegate); | 
|  136 }; |  136 }; | 
|  137  |  137  | 
|  138 }  // namespace |  138 }  // namespace | 
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  368 ShellBrowserContext* |  368 ShellBrowserContext* | 
|  369     ShellContentBrowserClient::off_the_record_browser_context() { |  369     ShellContentBrowserClient::off_the_record_browser_context() { | 
|  370   return shell_browser_main_parts_->off_the_record_browser_context(); |  370   return shell_browser_main_parts_->off_the_record_browser_context(); | 
|  371 } |  371 } | 
|  372  |  372  | 
|  373 GeolocationDelegate* ShellContentBrowserClient::CreateGeolocationDelegate() { |  373 GeolocationDelegate* ShellContentBrowserClient::CreateGeolocationDelegate() { | 
|  374   return new ShellGeolocationDelegate(browser_context()); |  374   return new ShellGeolocationDelegate(browser_context()); | 
|  375 } |  375 } | 
|  376  |  376  | 
|  377 }  // namespace content |  377 }  // namespace content | 
| OLD | NEW |