| 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/browser/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 #include "content/public/browser/power_save_blocker.h" | 52 #include "content/public/browser/power_save_blocker.h" |
| 53 #include "content/public/browser/render_view_host_observer.h" | 53 #include "content/public/browser/render_view_host_observer.h" |
| 54 #include "content/public/browser/user_metrics.h" | 54 #include "content/public/browser/user_metrics.h" |
| 55 #include "content/public/common/bindings_policy.h" | 55 #include "content/public/common/bindings_policy.h" |
| 56 #include "content/public/common/content_constants.h" | 56 #include "content/public/common/content_constants.h" |
| 57 #include "content/public/common/content_switches.h" | 57 #include "content/public/common/content_switches.h" |
| 58 #include "content/public/common/context_menu_params.h" | 58 #include "content/public/common/context_menu_params.h" |
| 59 #include "content/public/common/context_menu_source_type.h" | 59 #include "content/public/common/context_menu_source_type.h" |
| 60 #include "content/public/common/result_codes.h" | 60 #include "content/public/common/result_codes.h" |
| 61 #include "content/public/common/url_constants.h" | 61 #include "content/public/common/url_constants.h" |
| 62 #include "content/public/common/url_utils.h" |
| 62 #include "net/base/net_util.h" | 63 #include "net/base/net_util.h" |
| 63 #include "net/url_request/url_request_context_getter.h" | 64 #include "net/url_request/url_request_context_getter.h" |
| 64 #include "third_party/skia/include/core/SkBitmap.h" | 65 #include "third_party/skia/include/core/SkBitmap.h" |
| 65 #include "ui/gfx/image/image_skia.h" | 66 #include "ui/gfx/image/image_skia.h" |
| 66 #include "ui/gfx/native_widget_types.h" | 67 #include "ui/gfx/native_widget_types.h" |
| 67 #include "ui/shell_dialogs/selected_file_info.h" | 68 #include "ui/shell_dialogs/selected_file_info.h" |
| 68 #include "ui/snapshot/snapshot.h" | 69 #include "ui/snapshot/snapshot.h" |
| 69 #include "webkit/fileapi/isolated_context.h" | 70 #include "webkit/fileapi/isolated_context.h" |
| 70 #include "webkit/glue/glue_serialize.h" | 71 #include "webkit/glue/glue_serialize.h" |
| 71 #include "webkit/glue/webdropdata.h" | 72 #include "webkit/glue/webdropdata.h" |
| (...skipping 2009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2081 webkit_glue::FilePathsFromHistoryState(state); | 2082 webkit_glue::FilePathsFromHistoryState(state); |
| 2082 for (std::vector<base::FilePath>::const_iterator file = file_paths.begin(); | 2083 for (std::vector<base::FilePath>::const_iterator file = file_paths.begin(); |
| 2083 file != file_paths.end(); ++file) { | 2084 file != file_paths.end(); ++file) { |
| 2084 if (!policy->CanReadFile(GetProcess()->GetID(), *file)) | 2085 if (!policy->CanReadFile(GetProcess()->GetID(), *file)) |
| 2085 return false; | 2086 return false; |
| 2086 } | 2087 } |
| 2087 return true; | 2088 return true; |
| 2088 } | 2089 } |
| 2089 | 2090 |
| 2090 } // namespace content | 2091 } // namespace content |
| OLD | NEW |