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

Side by Side Diff: chrome/common/render_messages.h

Issue 2909016: DevTools & WebTiming : Migrate from PassiveLogCollector to dedicated LoadTimingObserver. (Closed)
Patch Set: Fixed tests. Created 10 years, 5 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | net/url_request/url_request_netlog_params.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_
6 #define CHROME_COMMON_RENDER_MESSAGES_H_ 6 #define CHROME_COMMON_RENDER_MESSAGES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 WriteParam(m, p.request_time); 1482 WriteParam(m, p.request_time);
1483 WriteParam(m, p.response_time); 1483 WriteParam(m, p.response_time);
1484 WriteParam(m, p.headers); 1484 WriteParam(m, p.headers);
1485 WriteParam(m, p.mime_type); 1485 WriteParam(m, p.mime_type);
1486 WriteParam(m, p.charset); 1486 WriteParam(m, p.charset);
1487 WriteParam(m, p.security_info); 1487 WriteParam(m, p.security_info);
1488 WriteParam(m, p.content_length); 1488 WriteParam(m, p.content_length);
1489 WriteParam(m, p.appcache_id); 1489 WriteParam(m, p.appcache_id);
1490 WriteParam(m, p.appcache_manifest_url); 1490 WriteParam(m, p.appcache_manifest_url);
1491 WriteParam(m, p.connection_id); 1491 WriteParam(m, p.connection_id);
1492 WriteParam(m, p.connection_reused);
1492 WriteParam(m, p.load_timing); 1493 WriteParam(m, p.load_timing);
1493 WriteParam(m, p.was_fetched_via_spdy); 1494 WriteParam(m, p.was_fetched_via_spdy);
1494 WriteParam(m, p.was_npn_negotiated); 1495 WriteParam(m, p.was_npn_negotiated);
1495 WriteParam(m, p.was_alternate_protocol_available); 1496 WriteParam(m, p.was_alternate_protocol_available);
1496 WriteParam(m, p.was_fetched_via_proxy); 1497 WriteParam(m, p.was_fetched_via_proxy);
1497 } 1498 }
1498 static bool Read(const Message* m, void** iter, param_type* r) { 1499 static bool Read(const Message* m, void** iter, param_type* r) {
1499 return 1500 return
1500 ReadParam(m, iter, &r->request_time) && 1501 ReadParam(m, iter, &r->request_time) &&
1501 ReadParam(m, iter, &r->response_time) && 1502 ReadParam(m, iter, &r->response_time) &&
1502 ReadParam(m, iter, &r->headers) && 1503 ReadParam(m, iter, &r->headers) &&
1503 ReadParam(m, iter, &r->mime_type) && 1504 ReadParam(m, iter, &r->mime_type) &&
1504 ReadParam(m, iter, &r->charset) && 1505 ReadParam(m, iter, &r->charset) &&
1505 ReadParam(m, iter, &r->security_info) && 1506 ReadParam(m, iter, &r->security_info) &&
1506 ReadParam(m, iter, &r->content_length) && 1507 ReadParam(m, iter, &r->content_length) &&
1507 ReadParam(m, iter, &r->appcache_id) && 1508 ReadParam(m, iter, &r->appcache_id) &&
1508 ReadParam(m, iter, &r->appcache_manifest_url) && 1509 ReadParam(m, iter, &r->appcache_manifest_url) &&
1509 ReadParam(m, iter, &r->connection_id) && 1510 ReadParam(m, iter, &r->connection_id) &&
1511 ReadParam(m, iter, &r->connection_reused) &&
1510 ReadParam(m, iter, &r->load_timing) && 1512 ReadParam(m, iter, &r->load_timing) &&
1511 ReadParam(m, iter, &r->was_fetched_via_spdy) && 1513 ReadParam(m, iter, &r->was_fetched_via_spdy) &&
1512 ReadParam(m, iter, &r->was_npn_negotiated) && 1514 ReadParam(m, iter, &r->was_npn_negotiated) &&
1513 ReadParam(m, iter, &r->was_alternate_protocol_available) && 1515 ReadParam(m, iter, &r->was_alternate_protocol_available) &&
1514 ReadParam(m, iter, &r->was_fetched_via_proxy); 1516 ReadParam(m, iter, &r->was_fetched_via_proxy);
1515 } 1517 }
1516 static void Log(const param_type& p, std::wstring* l) { 1518 static void Log(const param_type& p, std::wstring* l) {
1517 l->append(L"("); 1519 l->append(L"(");
1518 LogParam(p.request_time, l); 1520 LogParam(p.request_time, l);
1519 l->append(L", "); 1521 l->append(L", ");
1520 LogParam(p.response_time, l); 1522 LogParam(p.response_time, l);
1521 l->append(L", "); 1523 l->append(L", ");
1522 LogParam(p.headers, l); 1524 LogParam(p.headers, l);
1523 l->append(L", "); 1525 l->append(L", ");
1524 LogParam(p.mime_type, l); 1526 LogParam(p.mime_type, l);
1525 l->append(L", "); 1527 l->append(L", ");
1526 LogParam(p.charset, l); 1528 LogParam(p.charset, l);
1527 l->append(L", "); 1529 l->append(L", ");
1528 LogParam(p.security_info, l); 1530 LogParam(p.security_info, l);
1529 l->append(L", "); 1531 l->append(L", ");
1530 LogParam(p.content_length, l); 1532 LogParam(p.content_length, l);
1531 l->append(L", "); 1533 l->append(L", ");
1532 LogParam(p.appcache_id, l); 1534 LogParam(p.appcache_id, l);
1533 l->append(L", "); 1535 l->append(L", ");
1534 LogParam(p.appcache_manifest_url, l); 1536 LogParam(p.appcache_manifest_url, l);
1535 l->append(L", "); 1537 l->append(L", ");
1536 LogParam(p.connection_id, l); 1538 LogParam(p.connection_id, l);
1537 l->append(L", "); 1539 l->append(L", ");
1540 LogParam(p.connection_reused, l);
1541 l->append(L", ");
1538 LogParam(p.load_timing, l); 1542 LogParam(p.load_timing, l);
1539 l->append(L", "); 1543 l->append(L", ");
1540 LogParam(p.was_fetched_via_spdy, l); 1544 LogParam(p.was_fetched_via_spdy, l);
1541 l->append(L", "); 1545 l->append(L", ");
1542 LogParam(p.was_npn_negotiated, l); 1546 LogParam(p.was_npn_negotiated, l);
1543 l->append(L", "); 1547 l->append(L", ");
1544 LogParam(p.was_alternate_protocol_available, l); 1548 LogParam(p.was_alternate_protocol_available, l);
1545 l->append(L", "); 1549 l->append(L", ");
1546 LogParam(p.was_fetched_via_proxy, l); 1550 LogParam(p.was_fetched_via_proxy, l);
1547 l->append(L")"); 1551 l->append(L")");
(...skipping 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after
3093 l->append(L")"); 3097 l->append(L")");
3094 } 3098 }
3095 }; 3099 };
3096 3100
3097 } // namespace IPC 3101 } // namespace IPC
3098 3102
3099 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" 3103 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h"
3100 #include "ipc/ipc_message_macros.h" 3104 #include "ipc/ipc_message_macros.h"
3101 3105
3102 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 3106 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | net/url_request/url_request_netlog_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698