OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/public/browser/url_data_source.h" | 5 #include "content/public/browser/url_data_source.h" |
6 | 6 |
7 #include "content/browser/webui/url_data_manager.h" | 7 #include "content/browser/webui/url_data_manager.h" |
8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
9 #include "content/public/common/url_constants.h" | 9 #include "content/public/common/url_constants.h" |
10 #include "net/url_request/url_request.h" | 10 #include "net/url_request/url_request.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
49 if (request->url().SchemeIs(kChromeDevToolsScheme) || | 49 if (request->url().SchemeIs(kChromeDevToolsScheme) || |
50 request->url().SchemeIs(kChromeUIScheme)) | 50 request->url().SchemeIs(kChromeUIScheme)) |
51 return true; | 51 return true; |
52 return false; | 52 return false; |
53 } | 53 } |
54 | 54 |
55 bool URLDataSource::ShouldServeMimeTypeAsContentTypeHeader() const { | 55 bool URLDataSource::ShouldServeMimeTypeAsContentTypeHeader() const { |
56 return false; | 56 return false; |
57 } | 57 } |
58 | 58 |
59 std::string URLDataSource::GetAccessControlAllowOriginHeaderForOrigin( | |
60 const std::string& origin) const { | |
61 return ""; | |
Tom Sepez
2014/10/03 17:02:45
nit: I thought the preferred way of returning an
dzhioev (left Google)
2014/10/03 19:55:07
Right. Done.
| |
62 } | |
63 | |
59 } // namespace content | 64 } // namespace content |
OLD | NEW |