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

Side by Side Diff: Source/web/WebFrameImpl.cpp

Issue 49093004: Move more arrays of strings to shareable memory (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 1 month 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 | « Source/platform/text/UnicodeRange.cpp ('k') | no next file » | 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) 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 #include "wtf/CurrentTime.h" 198 #include "wtf/CurrentTime.h"
199 #include "wtf/HashMap.h" 199 #include "wtf/HashMap.h"
200 200
201 using namespace WebCore; 201 using namespace WebCore;
202 202
203 namespace WebKit { 203 namespace WebKit {
204 204
205 static int frameCount = 0; 205 static int frameCount = 0;
206 206
207 // Key for a StatsCounter tracking how many WebFrames are active. 207 // Key for a StatsCounter tracking how many WebFrames are active.
208 static const char* const webFrameActiveCount = "WebFrameActiveCount"; 208 static const char webFrameActiveCount[] = "WebFrameActiveCount";
209 209
210 static void frameContentAsPlainText(size_t maxChars, Frame* frame, StringBuilder & output) 210 static void frameContentAsPlainText(size_t maxChars, Frame* frame, StringBuilder & output)
211 { 211 {
212 Document* document = frame->document(); 212 Document* document = frame->document();
213 if (!document) 213 if (!document)
214 return; 214 return;
215 215
216 if (!frame->view()) 216 if (!frame->view())
217 return; 217 return;
218 218
(...skipping 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after
2520 2520
2521 // There is a possibility that the frame being detached was the only 2521 // There is a possibility that the frame being detached was the only
2522 // pending one. We need to make sure final replies can be sent. 2522 // pending one. We need to make sure final replies can be sent.
2523 flushCurrentScopingEffort(m_findRequestIdentifier); 2523 flushCurrentScopingEffort(m_findRequestIdentifier);
2524 2524
2525 cancelPendingScopingEffort(); 2525 cancelPendingScopingEffort();
2526 } 2526 }
2527 } 2527 }
2528 2528
2529 } // namespace WebKit 2529 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/platform/text/UnicodeRange.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698