OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/test/plugin/plugin_geturl_test.h" | 5 #include "content/test/plugin/plugin_geturl_test.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 | 14 |
15 // url for "self". The %22%22 is to make a statement for javascript to | 15 // url for "self". The %22%22 is to make a statement for javascript to |
16 // evaluate and return. | 16 // evaluate and return. |
17 #define SELF_URL "javascript:window.location+\"\"" | 17 #define SELF_URL "javascript:window.location+\"\"" |
18 | 18 |
19 // The identifier for the self url stream. | 19 // The identifier for the self url stream. |
20 #define SELF_URL_STREAM_ID 1 | 20 #define SELF_URL_STREAM_ID 1 |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 id(), REDIRECT_SRC_URL, NULL, | 468 id(), REDIRECT_SRC_URL, NULL, |
469 reinterpret_cast<void*>(REDIRECT_SRC_URL_NOTIFICATION_ALLOW_ID)); | 469 reinterpret_cast<void*>(REDIRECT_SRC_URL_NOTIFICATION_ALLOW_ID)); |
470 } | 470 } |
471 } else if (stream_id == REDIRECT_SRC_URL_NOTIFICATION_ALLOW_ID) { | 471 } else if (stream_id == REDIRECT_SRC_URL_NOTIFICATION_ALLOW_ID) { |
472 received_url_redirect_allow_notification_ = true; | 472 received_url_redirect_allow_notification_ = true; |
473 HostFunctions()->urlredirectresponse(id(), notify_data, true); | 473 HostFunctions()->urlredirectresponse(id(), notify_data, true); |
474 } | 474 } |
475 } | 475 } |
476 | 476 |
477 } // namespace NPAPIClient | 477 } // namespace NPAPIClient |
OLD | NEW |