OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "app/message_box_flags.h" | 11 #include "app/message_box_flags.h" |
12 #include "app/resource_bundle.h" | 12 #include "app/resource_bundle.h" |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
16 #include "base/field_trial.h" | 16 #include "base/field_trial.h" |
17 #include "base/histogram.h" | 17 #include "base/histogram.h" |
18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
19 #include "base/process_util.h" | 19 #include "base/process_util.h" |
20 #include "base/singleton.h" | 20 #include "base/singleton.h" |
21 #include "base/string_piece.h" | 21 #include "base/string_piece.h" |
22 #include "base/string_util.h" | 22 #include "base/string_util.h" |
23 #include "base/time.h" | 23 #include "base/time.h" |
| 24 #include "base/utf_string_conversions.h" |
24 #include "build/build_config.h" | 25 #include "build/build_config.h" |
25 #include "chrome/common/appcache/appcache_dispatcher.h" | 26 #include "chrome/common/appcache/appcache_dispatcher.h" |
26 #include "chrome/common/bindings_policy.h" | 27 #include "chrome/common/bindings_policy.h" |
27 #include "chrome/common/child_process_logging.h" | 28 #include "chrome/common/child_process_logging.h" |
28 #include "chrome/common/chrome_constants.h" | 29 #include "chrome/common/chrome_constants.h" |
29 #include "chrome/common/chrome_paths.h" | 30 #include "chrome/common/chrome_paths.h" |
30 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
31 #include "chrome/common/extensions/extension.h" | 32 #include "chrome/common/extensions/extension.h" |
32 #include "chrome/common/jstemplate_builder.h" | 33 #include "chrome/common/jstemplate_builder.h" |
33 #include "chrome/common/page_zoom.h" | 34 #include "chrome/common/page_zoom.h" |
(...skipping 5201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5235 // the origins of the two domains are different. This can be treated as a | 5236 // the origins of the two domains are different. This can be treated as a |
5236 // top level navigation and routed back to the host. | 5237 // top level navigation and routed back to the host. |
5237 WebKit::WebFrame* opener = frame->opener(); | 5238 WebKit::WebFrame* opener = frame->opener(); |
5238 if (opener) { | 5239 if (opener) { |
5239 if (url.GetOrigin() != GURL(opener->url()).GetOrigin()) | 5240 if (url.GetOrigin() != GURL(opener->url()).GetOrigin()) |
5240 return true; | 5241 return true; |
5241 } | 5242 } |
5242 } | 5243 } |
5243 return false; | 5244 return false; |
5244 } | 5245 } |
OLD | NEW |