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 "content/public/browser/content_browser_client.h" | 5 #include "content/public/browser/content_browser_client.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "ui/gfx/image/image_skia.h" | 8 #include "ui/gfx/image/image_skia.h" |
9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
10 | 10 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 bool ContentBrowserClient::AllowWorkerDatabase( | 142 bool ContentBrowserClient::AllowWorkerDatabase( |
143 const GURL& url, | 143 const GURL& url, |
144 const base::string16& name, | 144 const base::string16& name, |
145 const base::string16& display_name, | 145 const base::string16& display_name, |
146 unsigned long estimated_size, | 146 unsigned long estimated_size, |
147 ResourceContext* context, | 147 ResourceContext* context, |
148 const std::vector<std::pair<int, int> >& render_frames) { | 148 const std::vector<std::pair<int, int> >& render_frames) { |
149 return true; | 149 return true; |
150 } | 150 } |
151 | 151 |
152 bool ContentBrowserClient::AllowWorkerFileSystem( | 152 void ContentBrowserClient::AllowWorkerFileSystem( |
153 const GURL& url, | 153 const GURL& url, |
154 ResourceContext* context, | 154 ResourceContext* context, |
155 const std::vector<std::pair<int, int> >& render_frames) { | 155 const std::vector<std::pair<int, int> >& render_frames, |
156 return true; | 156 base::Callback<void(bool)> callback) { |
| 157 callback.Run(true); |
157 } | 158 } |
158 | 159 |
159 bool ContentBrowserClient::AllowWorkerIndexedDB( | 160 bool ContentBrowserClient::AllowWorkerIndexedDB( |
160 const GURL& url, | 161 const GURL& url, |
161 const base::string16& name, | 162 const base::string16& name, |
162 ResourceContext* context, | 163 ResourceContext* context, |
163 const std::vector<std::pair<int, int> >& render_frames) { | 164 const std::vector<std::pair<int, int> >& render_frames) { |
164 return true; | 165 return true; |
165 } | 166 } |
166 | 167 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 | 344 |
344 #if defined(VIDEO_HOLE) | 345 #if defined(VIDEO_HOLE) |
345 ExternalVideoSurfaceContainer* | 346 ExternalVideoSurfaceContainer* |
346 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 347 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
347 WebContents* web_contents) { | 348 WebContents* web_contents) { |
348 return NULL; | 349 return NULL; |
349 } | 350 } |
350 #endif | 351 #endif |
351 | 352 |
352 } // namespace content | 353 } // namespace content |
OLD | NEW |