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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameSerializer.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #include "core/html/HTMLLinkElement.h" 56 #include "core/html/HTMLLinkElement.h"
57 #include "core/html/HTMLMetaElement.h" 57 #include "core/html/HTMLMetaElement.h"
58 #include "core/html/HTMLStyleElement.h" 58 #include "core/html/HTMLStyleElement.h"
59 #include "core/html/ImageDocument.h" 59 #include "core/html/ImageDocument.h"
60 #include "core/style/StyleFetchedImage.h" 60 #include "core/style/StyleFetchedImage.h"
61 #include "core/style/StyleImage.h" 61 #include "core/style/StyleImage.h"
62 #include "platform/SerializedResource.h" 62 #include "platform/SerializedResource.h"
63 #include "platform/graphics/Image.h" 63 #include "platform/graphics/Image.h"
64 #include "platform/heap/Handle.h" 64 #include "platform/heap/Handle.h"
65 #include "wtf/HashSet.h" 65 #include "wtf/HashSet.h"
66 #include "wtf/OwnPtr.h"
67 #include "wtf/text/CString.h" 66 #include "wtf/text/CString.h"
68 #include "wtf/text/StringBuilder.h" 67 #include "wtf/text/StringBuilder.h"
69 #include "wtf/text/TextEncoding.h" 68 #include "wtf/text/TextEncoding.h"
70 #include "wtf/text/WTFString.h" 69 #include "wtf/text/WTFString.h"
71 70
72 namespace blink { 71 namespace blink {
73 72
74 static bool shouldIgnoreElement(const Element& element) 73 static bool shouldIgnoreElement(const Element& element)
75 { 74 {
76 if (isHTMLScriptElement(element)) 75 if (isHTMLScriptElement(element))
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 continue; 478 continue;
480 } 479 }
481 emitsMinus = ch == '-'; 480 emitsMinus = ch == '-';
482 builder.append(ch); 481 builder.append(ch);
483 } 482 }
484 CString escapedUrl = builder.toString().ascii(); 483 CString escapedUrl = builder.toString().ascii();
485 return String::format("saved from url=(%04d)%s", static_cast<int>(escapedUrl .length()), escapedUrl.data()); 484 return String::format("saved from url=(%04d)%s", static_cast<int>(escapedUrl .length()), escapedUrl.data());
486 } 485 }
487 486
488 } // namespace blink 487 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameHost.h ('k') | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698