OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 { | 230 { |
231 } | 231 } |
232 }; | 232 }; |
233 | 233 |
234 virtual WebNavigationPolicy decidePolicyForNavigation(const NavigationPolicy
Info& info) | 234 virtual WebNavigationPolicy decidePolicyForNavigation(const NavigationPolicy
Info& info) |
235 { | 235 { |
236 return info.defaultPolicy; | 236 return info.defaultPolicy; |
237 } | 237 } |
238 | 238 |
239 // During a history navigation, we may choose to load new subframes from his
tory as well. | 239 // During a history navigation, we may choose to load new subframes from his
tory as well. |
240 // This returns such a history item if appropriate. | 240 // This returns such a history item if appropriate. Sets shouldLoadRequest t
o false if |
241 virtual WebHistoryItem historyItemForNewChildFrame(WebFrame*) { return WebHi
storyItem(); } | 241 // the history item will be handled asynchronously. |
| 242 virtual WebHistoryItem historyItemForNewChildFrame(bool* shouldLoadRequest)
{ return WebHistoryItem(); } |
242 | 243 |
243 // Whether the client is handling a navigation request. | 244 // Whether the client is handling a navigation request. |
244 virtual bool hasPendingNavigation(WebLocalFrame*) { return false; } | 245 virtual bool hasPendingNavigation(WebLocalFrame*) { return false; } |
245 | 246 |
246 // Navigational notifications ------------------------------------------ | 247 // Navigational notifications ------------------------------------------ |
247 | 248 |
248 // These notifications bracket any loading that occurs in the WebFrame. | 249 // These notifications bracket any loading that occurs in the WebFrame. |
249 virtual void didStartLoading(bool toDifferentDocument) { } | 250 virtual void didStartLoading(bool toDifferentDocument) { } |
250 virtual void didStopLoading() { } | 251 virtual void didStopLoading() { } |
251 | 252 |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 // This method takes ownership of the callbacks pointer. | 689 // This method takes ownership of the callbacks pointer. |
689 virtual void checkIfAudioSinkExistsAndIsAuthorized(const WebString& sinkId,
const WebSecurityOrigin&, WebSetSinkIdCallbacks*) { BLINK_ASSERT_NOT_REACHED();
} | 690 virtual void checkIfAudioSinkExistsAndIsAuthorized(const WebString& sinkId,
const WebSecurityOrigin&, WebSetSinkIdCallbacks*) { BLINK_ASSERT_NOT_REACHED();
} |
690 | 691 |
691 protected: | 692 protected: |
692 virtual ~WebFrameClient() { } | 693 virtual ~WebFrameClient() { } |
693 }; | 694 }; |
694 | 695 |
695 } // namespace blink | 696 } // namespace blink |
696 | 697 |
697 #endif | 698 #endif |
OLD | NEW |