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

Side by Side Diff: Source/core/inspector/InspectorCSSAgent.h

Issue 1308273007: Make classes and structures in core/inspector fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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) 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 MediaListSourceMediaRule, 70 MediaListSourceMediaRule,
71 MediaListSourceImportRule 71 MediaListSourceImportRule
72 }; 72 };
73 73
74 enum StyleSheetsUpdateType { 74 enum StyleSheetsUpdateType {
75 InitialFrontendLoad = 0, 75 InitialFrontendLoad = 0,
76 ExistingFrontendRefresh, 76 ExistingFrontendRefresh,
77 }; 77 };
78 78
79 class InlineStyleOverrideScope { 79 class InlineStyleOverrideScope {
80 STACK_ALLOCATED();
80 public: 81 public:
81 InlineStyleOverrideScope(SecurityContext* context) 82 InlineStyleOverrideScope(SecurityContext* context)
82 : m_contentSecurityPolicy(context->contentSecurityPolicy()) 83 : m_contentSecurityPolicy(context->contentSecurityPolicy())
83 { 84 {
84 m_contentSecurityPolicy->setOverrideAllowInlineStyle(true); 85 m_contentSecurityPolicy->setOverrideAllowInlineStyle(true);
85 } 86 }
86 87
87 ~InlineStyleOverrideScope() 88 ~InlineStyleOverrideScope()
88 { 89 {
89 m_contentSecurityPolicy->setOverrideAllowInlineStyle(false); 90 m_contentSecurityPolicy->setOverrideAllowInlineStyle(false);
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 bool m_isSettingStyleSheetText; 222 bool m_isSettingStyleSheetText;
222 223
223 friend class InspectorResourceContentLoaderCallback; 224 friend class InspectorResourceContentLoaderCallback;
224 friend class StyleSheetBinder; 225 friend class StyleSheetBinder;
225 }; 226 };
226 227
227 228
228 } // namespace blink 229 } // namespace blink
229 230
230 #endif // !defined(InspectorCSSAgent_h) 231 #endif // !defined(InspectorCSSAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorBaseAgent.h ('k') | Source/core/inspector/InspectorInstrumentation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698