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

Side by Side Diff: Source/core/loader/PingLoader.h

Issue 1187563005: Code cleanup in core/loader/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/core/loader/LinkHeader.cpp ('k') | Source/core/loader/ProgressTracker.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 WTF_MAKE_NONCOPYABLE(PingLoader); 62 WTF_MAKE_NONCOPYABLE(PingLoader);
63 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(PingLoader); 63 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(PingLoader);
64 public: 64 public:
65 virtual ~PingLoader(); 65 virtual ~PingLoader();
66 66
67 enum ViolationReportType { 67 enum ViolationReportType {
68 ContentSecurityPolicyViolationReport, 68 ContentSecurityPolicyViolationReport,
69 XSSAuditorViolationReport 69 XSSAuditorViolationReport
70 }; 70 };
71 71
72 static void loadImage(LocalFrame*, const KURL& url); 72 static void loadImage(LocalFrame*, const KURL&);
73 static void sendLinkAuditPing(LocalFrame*, const KURL& pingURL, const KURL& destinationURL); 73 static void sendLinkAuditPing(LocalFrame*, const KURL& pingURL, const KURL& destinationURL);
74 static void sendViolationReport(LocalFrame*, const KURL& reportURL, PassRefP tr<FormData> report, ViolationReportType); 74 static void sendViolationReport(LocalFrame*, const KURL& reportURL, PassRefP tr<FormData> report, ViolationReportType);
75 75
76 DECLARE_VIRTUAL_TRACE(); 76 DECLARE_VIRTUAL_TRACE();
77 77
78 protected: 78 protected:
79 PingLoader(LocalFrame*, ResourceRequest&, const FetchInitiatorInfo&, StoredC redentials); 79 PingLoader(LocalFrame*, ResourceRequest&, const FetchInitiatorInfo&, StoredC redentials);
80 80
81 static void start(LocalFrame*, ResourceRequest&, const FetchInitiatorInfo&, StoredCredentials = AllowStoredCredentials); 81 static void start(LocalFrame*, ResourceRequest&, const FetchInitiatorInfo&, StoredCredentials = AllowStoredCredentials);
82 82
(...skipping 11 matching lines...) Expand all
94 94
95 OwnPtr<WebURLLoader> m_loader; 95 OwnPtr<WebURLLoader> m_loader;
96 Timer<PingLoader> m_timeout; 96 Timer<PingLoader> m_timeout;
97 String m_url; 97 String m_url;
98 unsigned long m_identifier; 98 unsigned long m_identifier;
99 }; 99 };
100 100
101 } // namespace blink 101 } // namespace blink
102 102
103 #endif // PingLoader_h 103 #endif // PingLoader_h
OLDNEW
« no previous file with comments | « Source/core/loader/LinkHeader.cpp ('k') | Source/core/loader/ProgressTracker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698