OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 int argc, | 340 int argc, |
341 v8::Local<v8::Value> argv[]) = 0; | 341 v8::Local<v8::Value> argv[]) = 0; |
342 | 342 |
343 // Returns the V8 context for associated with the main world and this | 343 // Returns the V8 context for associated with the main world and this |
344 // frame. There can be many V8 contexts associated with this frame, one for | 344 // frame. There can be many V8 contexts associated with this frame, one for |
345 // each isolated world and one for the main world. If you don't know what | 345 // each isolated world and one for the main world. If you don't know what |
346 // the "main world" or an "isolated world" is, then you probably shouldn't | 346 // the "main world" or an "isolated world" is, then you probably shouldn't |
347 // be calling this API. | 347 // be calling this API. |
348 virtual v8::Local<v8::Context> mainWorldScriptContext() const = 0; | 348 virtual v8::Local<v8::Context> mainWorldScriptContext() const = 0; |
349 | 349 |
| 350 |
| 351 // Returns true if the WebFrame currently executing JavaScript has access |
| 352 // to the given WebFrame, or false otherwise. |
| 353 BLINK_EXPORT static bool scriptCanAccess(WebFrame*); |
| 354 |
| 355 |
350 // Navigation ---------------------------------------------------------- | 356 // Navigation ---------------------------------------------------------- |
351 | 357 |
352 // Reload the current document. | 358 // Reload the current document. |
353 // True |ignoreCache| explicitly bypasses caches. | 359 // True |ignoreCache| explicitly bypasses caches. |
354 // False |ignoreCache| revalidates any existing cache entries. | 360 // False |ignoreCache| revalidates any existing cache entries. |
355 virtual void reload(bool ignoreCache = false) = 0; | 361 virtual void reload(bool ignoreCache = false) = 0; |
356 | 362 |
357 // This is used for situations where we want to reload a different URL becau
se of a redirect. | 363 // This is used for situations where we want to reload a different URL becau
se of a redirect. |
358 virtual void reloadWithOverrideURL(const WebURL& overrideUrl, bool ignoreCac
he = false) = 0; | 364 virtual void reloadWithOverrideURL(const WebURL& overrideUrl, bool ignoreCac
he = false) = 0; |
359 | 365 |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; | 740 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; |
735 }; | 741 }; |
736 | 742 |
737 #if BLINK_IMPLEMENTATION | 743 #if BLINK_IMPLEMENTATION |
738 Frame* toCoreFrame(const WebFrame*); | 744 Frame* toCoreFrame(const WebFrame*); |
739 #endif | 745 #endif |
740 | 746 |
741 } // namespace blink | 747 } // namespace blink |
742 | 748 |
743 #endif | 749 #endif |
OLD | NEW |