| 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/l10n_util.h" | |
| 12 #include "app/message_box_flags.h" | 11 #include "app/message_box_flags.h" |
| 13 #include "app/resource_bundle.h" | 12 #include "app/resource_bundle.h" |
| 14 #include "base/callback.h" | 13 #include "base/callback.h" |
| 15 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 16 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 17 #include "base/field_trial.h" | 16 #include "base/field_trial.h" |
| 18 #include "base/histogram.h" | 17 #include "base/histogram.h" |
| 19 #include "base/path_service.h" | 18 #include "base/path_service.h" |
| 20 #include "base/process_util.h" | 19 #include "base/process_util.h" |
| 21 #include "base/singleton.h" | 20 #include "base/singleton.h" |
| (...skipping 5192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5214 // the origins of the two domains are different. This can be treated as a | 5213 // the origins of the two domains are different. This can be treated as a |
| 5215 // top level navigation and routed back to the host. | 5214 // top level navigation and routed back to the host. |
| 5216 WebKit::WebFrame* opener = frame->opener(); | 5215 WebKit::WebFrame* opener = frame->opener(); |
| 5217 if (opener) { | 5216 if (opener) { |
| 5218 if (url.GetOrigin() != GURL(opener->url()).GetOrigin()) | 5217 if (url.GetOrigin() != GURL(opener->url()).GetOrigin()) |
| 5219 return true; | 5218 return true; |
| 5220 } | 5219 } |
| 5221 } | 5220 } |
| 5222 return false; | 5221 return false; |
| 5223 } | 5222 } |
| OLD | NEW |