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

Side by Side Diff: third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseResource.cpp

Issue 1702673002: DevTools: migrate remote debugging protocol generators to jinja2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2009 Google Inc. All rights reserved. 4 * Copyright (C) 2009 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 { 50 {
51 } 51 }
52 52
53 DEFINE_TRACE(InspectorDatabaseResource) 53 DEFINE_TRACE(InspectorDatabaseResource)
54 { 54 {
55 visitor->trace(m_database); 55 visitor->trace(m_database);
56 } 56 }
57 57
58 void InspectorDatabaseResource::bind(protocol::Frontend::Database* frontend) 58 void InspectorDatabaseResource::bind(protocol::Frontend::Database* frontend)
59 { 59 {
60 RefPtr<protocol::TypeBuilder::Database::Database> jsonObject = protocol::Typ eBuilder::Database::Database::create() 60 OwnPtr<protocol::Database::Database> jsonObject = protocol::Database::Databa se::create()
61 .setId(m_id) 61 .setId(m_id)
62 .setDomain(m_domain) 62 .setDomain(m_domain)
63 .setName(m_name) 63 .setName(m_name)
64 .setVersion(m_version); 64 .setVersion(m_version).build();
65 frontend->addDatabase(jsonObject); 65 frontend->addDatabase(jsonObject.release());
66 } 66 }
67 67
68 } // namespace blink 68 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseAgent.cpp ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698