Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: public/web/WebFrame.h

Issue 295063002: [NotLanded] Implement the fetching algorithm of the Web Manifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 class OpenedFrameTracker; 63 class OpenedFrameTracker;
64 class WebData; 64 class WebData;
65 class WebDataSource; 65 class WebDataSource;
66 class WebDocument; 66 class WebDocument;
67 class WebElement; 67 class WebElement;
68 class WebFormElement; 68 class WebFormElement;
69 class WebFrameClient; 69 class WebFrameClient;
70 class WebInputElement; 70 class WebInputElement;
71 class WebLayer; 71 class WebLayer;
72 class WebLocalFrame; 72 class WebLocalFrame;
73 class WebManifestRequest;
73 class WebPerformance; 74 class WebPerformance;
74 class WebPermissionClient; 75 class WebPermissionClient;
75 class WebRange; 76 class WebRange;
76 class WebRemoteFrame; 77 class WebRemoteFrame;
77 class WebSecurityOrigin; 78 class WebSecurityOrigin;
78 class WebSharedWorkerRepositoryClient; 79 class WebSharedWorkerRepositoryClient;
79 class WebString; 80 class WebString;
80 class WebURL; 81 class WebURL;
81 class WebURLLoader; 82 class WebURLLoader;
82 class WebURLRequest; 83 class WebURLRequest;
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 // empty ((0,0), (0,0)). 666 // empty ((0,0), (0,0)).
666 virtual WebRect selectionBoundsRect() const = 0; 667 virtual WebRect selectionBoundsRect() const = 0;
667 668
668 // Only for testing purpose: 669 // Only for testing purpose:
669 // Returns true if selection.anchorNode has a marker on range from |from| wi th |length|. 670 // Returns true if selection.anchorNode has a marker on range from |from| wi th |length|.
670 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const = 0; 671 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const = 0;
671 672
672 // Dumps the layer tree, used by the accelerated compositor, in 673 // Dumps the layer tree, used by the accelerated compositor, in
673 // text form. This is used only by layout tests. 674 // text form. This is used only by layout tests.
674 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; 675 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0;
676 //
677 // Manifest ------------------------------------------------------------
678
679 // Starts fetching and parsing the manifest. The passed WebManifestRequest
680 // will get notified when the request ends, whether it failed or succeeded.
681 virtual void requestManifest(WebManifestRequest&) const = 0;
dcheng 2014/07/28 17:08:58 Please move this interface method to WebLocalFrame
mlamouri (slow - plz ping) 2014/08/19 16:14:18 Done.
675 682
676 #if BLINK_IMPLEMENTATION 683 #if BLINK_IMPLEMENTATION
677 static WebFrame* fromFrame(blink::Frame*); 684 static WebFrame* fromFrame(blink::Frame*);
678 #endif 685 #endif
679 686
680 protected: 687 protected:
681 explicit WebFrame(); 688 explicit WebFrame();
682 virtual ~WebFrame(); 689 virtual ~WebFrame();
683 690
684 private: 691 private:
685 friend class OpenedFrameTracker; 692 friend class OpenedFrameTracker;
686 693
687 WebFrame* m_parent; 694 WebFrame* m_parent;
688 WebFrame* m_previousSibling; 695 WebFrame* m_previousSibling;
689 WebFrame* m_nextSibling; 696 WebFrame* m_nextSibling;
690 WebFrame* m_firstChild; 697 WebFrame* m_firstChild;
691 WebFrame* m_lastChild; 698 WebFrame* m_lastChild;
692 699
693 WebFrame* m_opener; 700 WebFrame* m_opener;
694 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; 701 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker;
695 }; 702 };
696 703
697 #if BLINK_IMPLEMENTATION 704 #if BLINK_IMPLEMENTATION
698 blink::Frame* toWebCoreFrame(const WebFrame*); 705 blink::Frame* toWebCoreFrame(const WebFrame*);
699 #endif 706 #endif
700 707
701 } // namespace blink 708 } // namespace blink
702 709
703 #endif 710 #endif
OLDNEW
« Source/core/loader/ManifestLoaderTest.cpp ('K') | « public/platform/WebManifestRequest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698