| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 4 * Copyright (C) Research In Motion Limited 2009. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2009. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef IconController_h | 31 #ifndef IconController_h |
| 32 #define IconController_h | 32 #define IconController_h |
| 33 | 33 |
| 34 #include "IconURL.h" | 34 #include "core/dom/IconURL.h" |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 class Frame; | 38 class Frame; |
| 39 class KURL; | 39 class KURL; |
| 40 | 40 |
| 41 class IconController { | 41 class IconController { |
| 42 WTF_MAKE_NONCOPYABLE(IconController); | 42 WTF_MAKE_NONCOPYABLE(IconController); |
| 43 WTF_MAKE_FAST_ALLOCATED; | 43 WTF_MAKE_FAST_ALLOCATED; |
| 44 public: | 44 public: |
| 45 explicit IconController(Frame*); | 45 explicit IconController(Frame*); |
| 46 ~IconController(); | 46 ~IconController(); |
| 47 | 47 |
| 48 KURL url(); | 48 KURL url(); |
| 49 IconURLs urlsForTypes(int iconTypesMask); | 49 IconURLs urlsForTypes(int iconTypesMask); |
| 50 IconURL iconURL(IconType) const; | 50 IconURL iconURL(IconType) const; |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 bool appendToIconURLs(IconType, IconURLs*); | 53 bool appendToIconURLs(IconType, IconURLs*); |
| 54 IconURL defaultURL(IconType); | 54 IconURL defaultURL(IconType); |
| 55 | 55 |
| 56 Frame* m_frame; | 56 Frame* m_frame; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace WebCore | 59 } // namespace WebCore |
| 60 | 60 |
| 61 #endif | 61 #endif |
| OLD | NEW |