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

Side by Side Diff: Source/WebCore/platform/network/NetworkingContext.h

Issue 13529026: Removing a bunch of unused platform code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix whitespace and compiler error on Mac. Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 2 Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
3 3
4 This library is free software; you can redistribute it and/or 4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public 5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either 6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version. 7 version 2 of the License, or (at your option) any later version.
8 8
9 This library is distributed in the hope that it will be useful, 9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 16 matching lines...) Expand all
27 #if PLATFORM(MAC) 27 #if PLATFORM(MAC)
28 #include <wtf/SchedulePair.h> 28 #include <wtf/SchedulePair.h>
29 #endif 29 #endif
30 30
31 #if PLATFORM(CHROMIUM) 31 #if PLATFORM(CHROMIUM)
32 namespace WebKit { 32 namespace WebKit {
33 class WebCookieJar; 33 class WebCookieJar;
34 } 34 }
35 #endif 35 #endif
36 36
37 #if PLATFORM(QT)
38 #include <qglobal.h>
39 #endif
40
41 #if PLATFORM(MAC) 37 #if PLATFORM(MAC)
42 OBJC_CLASS NSOperationQueue; 38 OBJC_CLASS NSOperationQueue;
43 #endif 39 #endif
44 40
45 #if PLATFORM(QT)
46 QT_BEGIN_NAMESPACE
47 class QObject;
48 class QNetworkAccessManager;
49 class QUrl;
50 QT_END_NAMESPACE
51 #endif
52
53 #if USE(SOUP) 41 #if USE(SOUP)
54 typedef struct _SoupSession SoupSession; 42 typedef struct _SoupSession SoupSession;
55 #endif 43 #endif
56 44
57 namespace WebCore { 45 namespace WebCore {
58 46
59 class ResourceError; 47 class ResourceError;
60 class ResourceRequest; 48 class ResourceRequest;
61 49
62 class NetworkingContext : public RefCounted<NetworkingContext> { 50 class NetworkingContext : public RefCounted<NetworkingContext> {
(...skipping 14 matching lines...) Expand all
77 virtual bool localFileContentSniffingEnabled() const = 0; // FIXME: Reconcil e with ResourceHandle::forceContentSniffing(). 65 virtual bool localFileContentSniffingEnabled() const = 0; // FIXME: Reconcil e with ResourceHandle::forceContentSniffing().
78 virtual SchedulePairHashSet* scheduledRunLoopPairs() const { return 0; } 66 virtual SchedulePairHashSet* scheduledRunLoopPairs() const { return 0; }
79 virtual RetainPtr<CFDataRef> sourceApplicationAuditData() const = 0; 67 virtual RetainPtr<CFDataRef> sourceApplicationAuditData() const = 0;
80 virtual ResourceError blockedError(const ResourceRequest&) const = 0; 68 virtual ResourceError blockedError(const ResourceRequest&) const = 0;
81 #endif 69 #endif
82 70
83 #if PLATFORM(MAC) || USE(CFNETWORK) || USE(SOUP) 71 #if PLATFORM(MAC) || USE(CFNETWORK) || USE(SOUP)
84 virtual NetworkStorageSession& storageSession() const = 0; 72 virtual NetworkStorageSession& storageSession() const = 0;
85 #endif 73 #endif
86 74
87 #if PLATFORM(QT)
88 // FIXME: Wrap QNetworkAccessManager into a NetworkStorageSession to make th e code cross-platform.
89 virtual QObject* originatingObject() const = 0;
90 virtual QNetworkAccessManager* networkAccessManager() const = 0;
91 virtual bool mimeSniffingEnabled() const = 0;
92 virtual bool thirdPartyCookiePolicyPermission(const QUrl&) const = 0;
93 #endif
94
95 #if PLATFORM(WIN) 75 #if PLATFORM(WIN)
96 virtual String userAgent() const = 0; 76 virtual String userAgent() const = 0;
97 virtual String referrer() const = 0; 77 virtual String referrer() const = 0;
98 virtual ResourceError blockedError(const ResourceRequest&) const = 0; 78 virtual ResourceError blockedError(const ResourceRequest&) const = 0;
99 #endif 79 #endif
100 80
101 #if USE(SOUP) 81 #if USE(SOUP)
102 virtual uint64_t initiatingPageID() const = 0; 82 virtual uint64_t initiatingPageID() const = 0;
103 #endif 83 #endif
104 84
105 protected: 85 protected:
106 NetworkingContext() { } 86 NetworkingContext() { }
107 }; 87 };
108 88
109 } 89 }
110 90
111 #endif // NetworkingContext_h 91 #endif // NetworkingContext_h
OLDNEW
« no previous file with comments | « Source/WebCore/platform/network/NetworkStateNotifier.cpp ('k') | Source/WebCore/platform/network/ResourceHandle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698